From 2c02b6cac73e261bb0d2dedfb08abc1f24e438a1 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Wed, 28 May 2014 10:28:38 -0700 Subject: [PATCH] Fix tutorial to have exact translation of example Fixes #903. --- docs/tutorial.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 647a71350..9d40f00ae 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -88,18 +88,17 @@ The first thing you'll notice is the XML-ish syntax in your JavaScript. We have ```javascript // tutorial1-raw.js -var CommentBox = React.createClass({ +var CommentBox = React.createClass({displayName: 'CommentBox', 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." + ) ); } }); React.renderComponent( - CommentBox({}), + CommentBox(null), document.getElementById('content') ); ```