Skip to content

Commit

Permalink
Helps avoid a common Issue when following tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewHenderson committed Dec 11, 2015
1 parent eeee272 commit ef32927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ef32927

Please sign in to comment.