@samitouri / QOS-React-2 / commits / ef32927eb5

Helps avoid a common Issue when following tutorial

https://github.com/reactjs/react-tutorial/issues/87

Andrew Henderson committed Dec 10, 2015 at 22:44 UTC ef32927eb5fdf80d9f14b5814f6483c7141f6f44
1 file changed +2
docs/docs/tutorial.md
+2
@@ -130,6 +130,8 @@ You do not have to return basic HTML. You can return a tree of components that y
130
131 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/)).
132
133 +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.
134 +
135 ## Composing components
136
137 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: