Skip to content

Commit 8e049d0

Browse files
authored
Update tutorial.md
1 parent 155383e commit 8e049d0

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
@@ -1161,7 +1161,8 @@ class Game extends React.Component {
11611161
// Этот метод не изменялся
11621162
}
11631163
```
1164-
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)**
1164+
1165+
Обратите внимание, что в методе `jumpTo` мы не обновили свойство `history` состояния. Это потому, что обновления состояния объединяются или, проще говоря, React обновит только те свойства, которые были указаны в методе `setState` без изменения остальных свойств. Подробнее об этом читайте в **[документации](/docs/state-and-lifecycle.html#state-updates-are-merged)**.
11651166

11661167
Мы сделаем ещё несколько изменений в методе Game `handleClick`, который выполняется когда вы кликаете на клетки.
11671168

0 commit comments

Comments
 (0)