Open blueforest opened 8 years ago
I'm getting the same error above using gulp.
Ditto
Ok, I kind of figured it out. In main.js, change to this line:
ReactDOM.render(<ReactApp />, mountNode);
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.