dillon1000/react

Commit

Docs: do not render components to `document.body`

Rendering to `document.body` in the examples is conveniently short, but it can
be misleading at the same time, especially for newcomers.

While it's possible to render React components to `document.body`, any 3rd
party scripts can also mess up with it, and it can have unintended consequences
and be source of difficult-to-trace bugs.
Browse files
Changed paths10 files
First-parent comparison
M docs/_posts/2013-07-23-community-roundup-5.md ModifiedM docs/_posts/2013-07-30-use-react-and-jsx-in-ruby-on-rails.md ModifiedM docs/_posts/2014-08-03-community-roundup-21.md ModifiedM docs/docs/02-displaying-data.md ModifiedM docs/docs/02-displaying-data.zh-CN.md ModifiedM docs/docs/02.1-jsx-in-depth.md ModifiedM docs/docs/02.1-jsx-in-depth.zh-CN.md ModifiedM docs/docs/06-transferring-props.md ModifiedM docs/docs/06-transferring-props.zh-CN.md ModifiedM docs/docs/ref-09-glossary.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…