Merge pull request #5644 from AndrewHenderson/patch-1

Helps avoid a common Issue when following tutorial
(cherry picked from commit f282710072)
This commit is contained in:
Jim
2015-12-11 10:56:01 -08:00
committed by Paul O’Shannessy
parent 1f41a53d1e
commit e2e04fdbc3
+2
View File
@@ -130,6 +130,8 @@ You do not have to return basic HTML. You can return a tree of components that y
The `ReactDOM` module exposes DOM-specific methods, while `React` has the core tools shared by React on different platforms (e.g., [React Native](http://facebook.github.io/react-native/)).
It is important that `ReactDOM.render` remain at the bottom of the script for this tutorial. `ReactDOM.render` should only be called after the composite components have been defined.
## Composing components
Let's build skeletons for `CommentList` and `CommentForm` which will, again, be simple `<div>`s. Add these two components to your file, keeping the existing `CommentBox` declaration and `ReactDOM.render` call: