Browse Source

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.
main
dschafer 12 years ago
parent
commit
c1ef8e9ab4
  1. 2
      docs/tutorial.md

2
docs/tutorial.md

@ -331,7 +331,7 @@ So far, each component has rendered itself once based on its props. `props` are
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:
```javascript{3-5}
```javascript{3-5,10}
// tutorial12.js
var CommentBox = React.createClass({
getInitialState: function() {

Loading…
Cancel
Save