Skip to content

Instantly share code, notes, and snippets.

@vijayrawatsan
Created November 5, 2015 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayrawatsan/2e7e60106c95bdfde22c to your computer and use it in GitHub Desktop.
Save vijayrawatsan/2e7e60106c95bdfde22c to your computer and use it in GitHub Desktop.
Another possible reason to run into "only a single copy of React can be loaded at a time"
Warning: React can't find the root component node for data-reactid value `.0.2.0`. If you're seeing this message, it probably means that you've loaded two copies of React on the page. At this time, only a single copy of React can be loaded at a time.
I was rendering a jsx server side.
In my componentWillMount I was resolving a promise, which was in turn changing the state and
adding children into the render method.
Solved this by making server side componentWillMount code run synchronously.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment