From 01084d5aebc81843a148d182e938b86464a566ba Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Mon, 25 Oct 2021 10:15:58 +0300 Subject: [PATCH] Improve new sentence in tutorial --- content/tutorial/tutorial.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/tutorial/tutorial.md b/content/tutorial/tutorial.md index 67855de9..6c8b7a5c 100644 --- a/content/tutorial/tutorial.md +++ b/content/tutorial/tutorial.md @@ -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.