UNPKG

use-zustand

Version:

Another custom hook to use Zustand vanilla store

3 lines (2 loc) 201 B
import type { StoreApi } from 'zustand'; export declare function useZustand<State, Slice>(store: StoreApi<State>, selector: (state: State) => Slice, areEqual?: (a: Slice, b: Slice) => boolean): Slice;