2018-12-18T11:15:11Z||2018-12-18T11:15:11Z


完整错误信息:

Objects are not valid as a React child (found: object with keys {id, name, description}). If you meant to render a collection of children, use an array instead

遇到这种情况是因为,react jsx中大括号里不能有对象,比如:

return (
  <div>{a}</div>
);

如果上面的a是一个对象的话,就会出现这种错误。