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.
Was this page helpful?