Skip to content
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

Warn when rendering directly into document.body #3211

Closed
wants to merge 4 commits into from

Conversation

banderson
Copy link
Contributor

This is in response to #3207 to address concerns regarding third-party
scripts and browser plugins potentially altering DOM nodes within
document.body, causing problems with reconciliation.

This is in response to facebook#3207 to address concerns regarding third-party
scripts and browser plugins potentially altering DOM nodes within
document.body, causing problems with reconciliation.
container !== document.body,
'render(): Rendering components directly into document.body is ' +
'discouraged, since its children are often manipulated by third party' +
'scripts and browser extensions. This may lead to subtle reconciliation' +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing a space after "reconciliation"

@banderson
Copy link
Contributor Author

@spicyj thanks for the help, just pushed two more commits to address your concerns. Let me know if there's anything else I can do here.

@sophiebits
Copy link
Collaborator

Looks good, thanks – will merge after we release 0.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants