Zustand · Module
get
Zustand creates small stores as hooks. Define state and actions with create, update state with set, and read selected values in components without a provider.
Last updated
Syntax
create<State>()((set) => ({ ...state, ...actions }))In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
useShallowExtractStatecombinedevtoolspersistUpdating stateAdvanced TypeScript