UNPKG

jotai

Version:

👻 Next gen state management that will spook you

4 lines (3 loc) • 213 B
import { Draft } from 'immer'; import { WritableAtom } from 'jotai'; export declare function useImmerAtom<Value, Update>(anAtom: WritableAtom<Value, Update>): [Value, (fn: (draft: Draft<Value>) => void) => void];