DavidWells / isomorphic-react-example

Deprecated! ReactJS + NodeJS ( express ) demo tutorial with video. Universal/Isomorphic JS = Shared JavaScript that runs on both the client & server.
http://davidwells.io
MIT License
1.69k stars 272 forks source link

app/main.js line 8: React.render(new ReactApp({}), mountNode) #14

Open idamag opened 8 years ago

idamag commented 8 years ago

In react@0.13.3, it will cause error: Uncaught Error: Invariant Violation: React.render(): Invalid component element. This may be caused by unintentionally loading two independent copies of React.

But change the code to React.render(<ReactApp />,mountNode),it will be correct.

zonakusu commented 8 years ago

This fixed my problem, thanks a lot!