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