Getting Started
5 minutes to learn the most important Mutative concepts.
Installation
Install Mutative from npm or load it from a CDN, and check the environments it supports.
Usages
Common immutable updates of objects, arrays, Maps and Sets with create().
Concepts
Drafts, finalization with structural sharing, patches and marks, the ideas behind Mutative.
Using Mutative with React
Update React state with create(), or with the use-mutative hooks.
Performance
Benchmark results against Immer and hand-written reducers across 97 workloads, and how to run the benchmarks.
Edit on GitHub
Last updated on by Michael Lin