Skip to content

Commit f94e8b4

Browse files
cheeseytoastieDaniel15
authored andcommitted
Update Tutorial to ensure the CommentList and ComentForm declarations are before CommentBox (reactjs#332)
As a newbie I just spent half an hour scratching my head why I was getting a null error.
1 parent 6c78001 commit f94e8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/jekyll/getting-started/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ You do not have to return basic HTML. You can return a tree of components that y
231231
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/)).
232232
## Composing components
233233

234-
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:
234+
Let's build skeletons for `CommentList` and `CommentForm` which will, again, be simple `<div>`s. Add these two components to the top of your file, just before the existing `CommentBox` declaration and `ReactDOM.render` call:
235235

236236
```javascript
237237
var CommentList = React.createClass({

0 commit comments

Comments
 (0)