We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b943f65 commit 4e91df8Copy full SHA for 4e91df8
Ch06/react-immutable-introduction.md
@@ -203,7 +203,7 @@ ImmutableJS 提供了 7 種不可修改的資料類型:`List`、`Map`、`Stack
203
傳統 JavaScript 比較方式,若資料型態為 Primitive 就不會有問題:
204
205
```javascript
206
-// 在 shouldComponentUpdate 比較接下來的 props 一否一致,若相同則不重新渲染,提昇效能
+// 在 shouldComponentUpdate 比較接下來的 props 是否一致,若相同則不重新渲染,提昇效能
207
shouldComponentUpdate (nextProps) {
208
return this.props.value !== nextProps.value;
209
}
0 commit comments