-
Notifications
You must be signed in to change notification settings - Fork 34
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 16 warning #1
Comments
I'll take a look |
A quick look shows this might be an issue with using portals to render content outside of the root element. When React hydrates the DOM, it looks for a matching element in the server HTML but in this case can't find a |
Heh yea, this might be a use of React Portals in a way it wasn't intended to be used. But the use case feels legit! I'm hoping it's just a false negative warning or something. Will try and get @gaearon 's attention sometime to see if this is legit or a hacky use of Portals that he recommends against. 😁 |
File an issue in React with an isolated small example please. |
Filed facebook/react#11169 |
Figure out why React 16 shows this warning:
You can see this in action with the example app:
Then navigate to http://localhost:3000
The text was updated successfully, but these errors were encountered: