Zustand · Pipe
trace
Zustand creates small stores that React components can read through hooks. Components subscribe with selectors, and optional middleware adds features such as persistence and developer tools.
Last updated
Syntax
const useStore = create<State>((set, get) => ({ ...state, ...actions }))In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createStorecreateWithEqualityFnuseStoreuseShallowpersistdevtoolsimmerredux