When using JSX code on a pre-existing piece of code that is using props.children
, I am receiving the error Uncaught Invariant Violation: Objects are not valid as a React child (found: object with keys {}).
.
Furthur more, the object sent through as this.props.children
no longer look like element classes.
Files 01 and 03 shows the code working on a JSBIN sandbox. https://jsbin.com/busaqipeme/edit?js,console,output
Files 02 and 04 show the code from a large react project.