Skip to content

Commit 01084d5

Browse files
authored
Improve new sentence in tutorial
1 parent f2158e3 commit 01084d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/tutorial/tutorial.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,8 @@ Next, we'll define the `jumpTo` method in Game to update that `stepNumber`. We a
11471147
// this method has not changed
11481148
}
11491149
```
1150-
Notice in `jumpTo` method, we haven't updated history property of the state. That is because state updates are merged or in more simple words react will update only the properties mentioned in `setState` method leaving the remaining state as that is. For more info **[see the documentation](https://reactjs.org/docs/state-and-lifecycle.html#state-updates-are-merged)**
1150+
1151+
Notice in `jumpTo` method, we haven't updated `history` property of the state. That is because state updates are merged or in more simple words React will update only the properties mentioned in `setState` method leaving the remaining state as that is. For more info **[see the documentation](/docs/state-and-lifecycle.html#state-updates-are-merged)**.
11511152

11521153
We will now make a few changes to the Game's `handleClick` method which fires when you click on a square.
11531154

0 commit comments

Comments
 (0)