lemonvinci
lemonvinci3y ago

accidentally tried to render an id

accidentally tried to render an id directly like id: {job._id} . the error didn’t make it obvious that you need to call job._id.toString(). error was
Uncaught Error: Objects are not valid as a React child (found: object with keys {tableName, id}). If you meant to render a collection of children, use an array instead.
Uncaught Error: Objects are not valid as a React child (found: object with keys {tableName, id}). If you meant to render a collection of children, use an array instead.
1 Reply
ballingt
ballingt3y ago
yeah I wish React would render something in dev so you could see the spot where the issue was occurring

Did you find this page helpful?