Objects are not valid as a React child (found: object with keys {status, data, operationId, correlat
阿新 • • 發佈:2018-11-05
Objects are not valid as a React child (found: object with keys {status, data, operationId, correlationId}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of
exports.
錯誤原因:
1.children不是陣列
2.children是object
3.把child當做object使用