mweststrate

mweststrate/use-immer

Use immer to drive state with a React hooks

TypeScript
4511
102
MIT License

`use-immer` is a React hook that leverages [immer](https://github.com/mweststrate/immer) to simplify immutable state management in React components. It provides `useImmer` and `useImmerReducer` hooks, allowing developers to write mutable code that produces immutable state updates, making complex state mutations more intuitive and less error-prone. This library is ideal for React developers who want to streamline state management while maintaining immutability, especially when dealing with nested or complex state objects.

Total donated
Undistributed
Share with your subscribers: