Fix typo on tutorial.md. (#9644)

The absence of the word `this` will cause CodePen
to scream at you. This fix should avoid that.
(cherry picked from commit 7c1e971e7f)
This commit is contained in:
Carolina Powers
2017-06-12 16:33:40 -07:00
committed by Flarnie Marchan
parent dd988162a1
commit 7a3472ea53
+1 -1
View File
@@ -221,7 +221,7 @@ In [JavaScript classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/
Now change the Square `render` method to display the value from the current state, and to toggle it on click:
* Replace `this.props.value` with `this.state.value` inside the `<button>` tag.
* Replace the `() => alert()` event handler with `() => setState({value: 'X'})`.
* Replace the `() => alert()` event handler with `() => this.setState({value: 'X'})`.
Now the `<button>` tag looks like this: