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

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

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

Parameters

getStringStorage: () => AsyncStringStorage
optional
options: JsonStorageOptions

Parameters

getStringStorage: () => SyncStringStorage
optional
options: JsonStorageOptions