Zustand · Type Alias
Mutate
create makes a React hook for a Zustand store. The hook can read selected state and exposes store API utilities.
Last updated
Syntax
create<T>()(stateCreatorFn: StateCreator<T, [], []>): UseBoundStore<StoreApi<T>>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createStorecreateWithEqualityFnuseStoreuseShallowpersistdevtools