import { useAtom } from "https://deno.land/x/jotai@v2.6.5/src/react/useAtom.ts";
Parameters
atom: PrimitiveAtom<Value>
Returns
[Awaited<Value>, SetAtom<[SetStateAction<Value>], void>]
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]