UNPKG

jotai

Version:

👻 Next gen state management that will spook you

4 lines (3 loc) • 363 B
import { PrimitiveAtom } from 'jotai'; export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a?: Action) => Value): [Value, (action?: Action) => void]; export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a: Action) => Value): [Value, (action: Action) => void];