Skip to content

Commit b5d3266

Browse files
SomiaWhiteRingQC-L
andauthored
docs(cn): translate new sentence in tutorial (#656)
Co-authored-by: QiChang Li <github@liqichang.com>
1 parent 1fcf159 commit b5d3266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/tutorial/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ class Game extends React.Component {
11481148
}
11491149
```
11501150

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)**.
1151+
`jumpTo` 方法中, 我们没有更新 state 中的 `history` 属性。这是因为 state 更新被合并了,或者用更简单的话说,React 不会更新 `setState` 方法中未提到的属性。 **[这篇文档](/docs/state-and-lifecycle.html#state-updates-are-merged)**对此有更详细的介绍。
11521152

11531153
接下来,我们还要修改 Game 组件的 `handleClick` 方法,当你点击方格的时候触发该方法。
11541154

0 commit comments

Comments
 (0)