react-copy-write
An immutable React state management library with a simple mutable API, memoized selectors, and structural sharing. Powered by Immer.
Installation
react-copy-write requires React 16.3 or later, as it depends on the new React.createContext
API.
yarn add react-copy-write
Usage
react-copy-write exports a function which takes your base state and returns an object with the Provider
and Consumer
components, along with a few other utility methods.
const UserState = ;