import { useAtom } from "https://deno.land/x/jotai@v2.0.4/src/react/useAtom.ts";
Type Parameters
AtomType extends WritableAtom<any, any[], any>
Parameters
atom: AtomType
Returns
[Awaited<ExtractAtomValue<AtomType>>, SetAtom<ExtractAtomArgs<AtomType>, ExtractAtomResult<AtomType>>]
Type Parameters
AtomType extends Atom<any>
Parameters
atom: AtomType
Returns
[Awaited<ExtractAtomValue<AtomType>>, never]