Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Improve new sentence in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Oct 25, 2021
1 parent f2158e3 commit 01084d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/tutorial/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,8 @@ Next, we'll define the `jumpTo` method in Game to update that `stepNumber`. We a
// this method has not changed
}
```
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)**

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)**.

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

Expand Down

0 comments on commit 01084d5

Please sign in to comment.