@samitouri / QOS-React-2 / commits / 24f523a351
Fork 0

The library for web and native user interfaces.

Highlight additional change in tutorial12.js

tutorial12.js switches from using this.props to this.state. Let's highlight the change on line 10 as well to make that clear.

dschafer committed Jun 3, 2013 at 13:48 UTC 24f523a351839496577c6566d8c7f859c75f5a0c
1 file changed +1 -1
docs/docs/tutorial.md
+1 -1
@@ -331,7 +331,7 @@ So far, each component has rendered itself once based on its props. `props` are
331
332 When the server fetches data, we will be changing the comment data we have. Let's add an array of comment data to the `CommentBox` component as its state:
333
334 -```javascript{3-5}
334 +```javascript{3-5,10}
335 // tutorial12.js
336 var CommentBox = React.createClass({
337 getInitialState: function() {