@samitouri / QOS-React-2 / commits / 2e3cf459ba

Fix tutorial to have exact translation of example

Fixes #903.

Ben Alpert committed May 28, 2014 at 10:28 UTC 2e3cf459ba225e7a0bd8489bb57bce7b6aea7d53
1 file changed +5 -6
docs/docs/tutorial.md
+5 -6
@@ -88,18 +88,17 @@ The first thing you'll notice is the XML-ish syntax in your JavaScript. We have
88
89 ```javascript
90 // tutorial1-raw.js
91 -var CommentBox = React.createClass({
91 +var CommentBox = React.createClass({displayName: 'CommentBox',
92 render: function() {
93 return (
94 - React.DOM.div({
95 - className: 'commentBox',
96 - children: 'Hello, world! I am a CommentBox.'
97 - })
94 + React.DOM.div({className: "commentBox"},
95 + "Hello, world! I am a CommentBox."
96 + )
97 );
98 }
99 });
100 React.renderComponent(
102 - CommentBox({}),
101 + CommentBox(null),
102 document.getElementById('content')
103 );
104 ```