made with react.js

Immer

Create the next immutable state by mutating the current one

Visit Site

Description

Create the next immutable state by mutating the current one

"Immer (German for: always) is a tiny package that allows you to work with immutable state in a more convenient way. It is based on the copy-on-write mechanism.

The basic idea is that you will apply all your changes to a temporarily draftState, which is a proxy of the currentState. Once all your mutations are completed, Immer will produce the nextState based on the mutations to the draft state. This means that you can interact with your data by simply modifying it while keeping all the benefits of immutable data."


Creator

Michel Weststrate
@mweststrate


Social Media Links

React Hooks Testing Library Hooks Testing Utilities
icon-eye-dark Created with Sketch. 35
React Loadable A higher order component for loading components with dynamic import
icon-eye-dark Created with Sketch. 64
image-chart Created with Sketch.
Looking for a React.js Admin Template? Find the best ones here!
React AB Simple declarative and universal A/B testing component
icon-eye-dark Created with Sketch. 350
Proppy Functional props composition for components
icon-eye-dark Created with Sketch. 83