-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react render error:ReactDOM.render(): Invalid component element #16
Comments
I'm getting the same error above using gulp. |
Ditto |
Ok, I kind of figured it out. In main.js, change to this line:
Not sure exactly why this works, but I got the idea from here: https://www.bountysource.com/issues/27051749-app-main-js-line-8-react-render-new-reactapp-mountnode If anybody can explain in further detail that would be appreciated. I'm assuming it's because react >=13.3 treats that differently... or something.... |
That solution worked for me as well. |
Still workin' in December 2017 |
I render React Component on server side:
1.components.js:
2.appFile/app.js
3.gruntFile.js
4.html
there is a error on browser console like this:
Uncaught Error: Invariant Violation: ReactDOM.render(): Invalid component element. This may be caused by unintentionally loading two independent copies of React.
The text was updated successfully, but these errors were encountered: