From e2e04fdbc33d2233bb07490d9e3853b94d4b1acb Mon Sep 17 00:00:00 2001 From: Jim Date: Fri, 11 Dec 2015 10:56:01 -0800 Subject: [PATCH] Merge pull request #5644 from AndrewHenderson/patch-1 Helps avoid a common Issue when following tutorial (cherry picked from commit f282710072590eec605ed690529d94cd57578132) --- docs/docs/tutorial.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index 4f6d5ac3aa..8846e6673f 100755 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -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 `
`s. Add these two components to your file, keeping the existing `CommentBox` declaration and `ReactDOM.render` call: