javascript - Objects are not valid as a React child(In mobile phone of android 4.4 for react 15.6.1) -


the whole error:

uncaught invariant violation: objects not valid react child (found: object keys {$$typeof, type, key, ref, props, _owner, _store}). if meant render collection of children, use array instead or wrap object using createf...<omitted>...`.

i can't find exact location of error, makes error in react-dom, how can debug , find out error?

you must using object child component in render method. component's child must either component, string or array.

ex.

render() {       return(         <yourcomponent>           {yourcomponentchild} // check here, must either string, array or component         </yourcomponent>       );     } 

you can follow thread invariant violation: objects not valid react child


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -