Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jotai/src/vanilla/utils/atomWithStorage.ts>AsyncStringStorage

👻 Primitive and flexible state management for React
Go to Latest
interface AsyncStringStorage
import { type AsyncStringStorage } from "https://deno.land/x/jotai@v2.1.1/src/vanilla/utils/atomWithStorage.ts";

Properties

getItem: (key: string) => PromiseLike<string | null>
setItem: (key: string, newValue: string) => PromiseLike<void>
removeItem: (key: string) => PromiseLike<void>