diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index 647a713509..167abaadee 100644 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -22,7 +22,7 @@ It'll also have a few neat features: ### Want to skip all this and just see the source? -[It's all on GitHub.](https://github.com/petehunt/react-tutorial) +[It's all on GitHub.](https://github.com/reactjs/react-tutorial) ### Getting started @@ -40,9 +40,7 @@ For this tutorial we'll use prebuilt JavaScript files on a CDN. Open up your fav
@@ -91,10 +89,9 @@ The first thing you'll notice is the XML-ish syntax in your JavaScript. We have var CommentBox = React.createClass({ render: function() { return ( - React.DOM.div({ - className: 'commentBox', - children: 'Hello, world! I am a CommentBox.' - }) + React.DOM.div({className: "commentBox"}, + "Hello, world! I am a CommentBox." + ) ); } }); @@ -309,7 +306,11 @@ Now that the data is available in the `CommentList`, let's render the comments d var CommentList = React.createClass({ render: function() { var commentNodes = this.props.data.map(function (comment) { - return