You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
Add to ReactDOM.render() and AppRegistry.registerComponent():
functionprerender(tempalte){if(typeoftemplate!=='object'){returntemplate;}let{props: { children }}=template;deletetemplate.props.children;returnReact.createElement(template.type,template.props,template.children.map(child=>prerender(child)));}
React should not be a dev dependency for small modules it takes too much time to use. More than that if PropTypes will go native now no imports at all except for helpers!!!
The text was updated successfully, but these errors were encountered:
We don't have plans to do this. React elements are already more or less plain objects, but we intentionally add a symbol $$typeof which allows us to verify that it did not come directly from a JSON blob:
React should not be a dev dependency for small modules it takes too much time to use. More than that if PropTypes will go native now no imports at all except for helpers!!!
React itself is a quite small package. In the future we might split out PropTypes and createClass. If you want, you can use babel-plugin-react-inline-elements which makes it so JSX has no dependency on the React package in prod.
Problem
Solution
Add to ReactDOM.render() and AppRegistry.registerComponent():
and
will become
Why
The text was updated successfully, but these errors were encountered: