Skip to content

Commit 6faeeb8

Browse files
pavanmehta91gaearon
authored andcommitted
Adding immer in the list of immutable libraries (#1839)
* Adding immer in the list of immutable libraries * Update optimizing-performance.md
1 parent a1a7ec3 commit 6faeeb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/optimizing-performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,6 @@ x === z; // true
430430

431431
In this case, since a new reference is returned when mutating `x`, we can use a reference equality check `(x === y)` to verify that the new value stored in `y` is different than the original value stored in `x`.
432432

433-
Two other libraries that can help use immutable data are [seamless-immutable](https://github.com/rtfeldman/seamless-immutable) and [immutability-helper](https://github.com/kolodny/immutability-helper).
433+
Other libraries that can help use immutable data include [Immer](https://github.com/mweststrate/immer), [immutability-helper](https://github.com/kolodny/immutability-helper), and [seamless-immutable](https://github.com/rtfeldman/seamless-immutable).
434434

435435
Immutable data structures provide you with a cheap way to track changes on objects, which is all we need to implement `shouldComponentUpdate`. This can often provide you with a nice performance boost.

0 commit comments

Comments
 (0)