@samitouri / QOS-React-2 / commits / 7c1e971e7f

Fix typo on tutorial.md. (#9644)

The absence of the word `this` will cause CodePen to scream at you. This fix should avoid that.

Carolina Powers committed May 10, 2017 at 03:23 UTC 7c1e971e7fb4f9329f42c8f8f9f3fbb6803cb0a5
1 file changed +1 -1
docs/tutorial/tutorial.md
+1 -1
@@ -221,7 +221,7 @@ In [JavaScript classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/
221 Now change the Square `render` method to display the value from the current state, and to toggle it on click:
222
223 * Replace `this.props.value` with `this.state.value` inside the `<button>` tag.
224 -* Replace the `() => alert()` event handler with `() => setState({value: 'X'})`.
224 +* Replace the `() => alert()` event handler with `() => this.setState({value: 'X'})`.
225
226 Now the `<button>` tag looks like this:
227