Back to Error Solutions
Objects Not Valid as React Child
React
React Errors
Error Message
Objects are not valid as a React child
What Causes This Error?
This error occurs when you try to render a plain JavaScript object directly in JSX. React can only render strings, numbers, elements, or arrays.
Solution
Convert the object to a string using JSON.stringify() for debugging, or render specific properties of the object instead of the whole object.
Details
Technology
React
Severity
Category
React Errors