Skip to content

Commit 4e91df8

Browse files
authored
Update react-immutable-introduction.md
1 parent b943f65 commit 4e91df8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ch06/react-immutable-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ ImmutableJS 提供了 7 種不可修改的資料類型:`List`、`Map`、`Stack
203203
傳統 JavaScript 比較方式,若資料型態為 Primitive 就不會有問題:
204204

205205
```javascript
206-
// 在 shouldComponentUpdate 比較接下來的 props 一否一致,若相同則不重新渲染,提昇效能
206+
// 在 shouldComponentUpdate 比較接下來的 props 是否一致,若相同則不重新渲染,提昇效能
207207
shouldComponentUpdate (nextProps) {
208208
return this.props.value !== nextProps.value;
209209
}

0 commit comments

Comments
 (0)