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
Latest
function createJSONStorage
import { createJSONStorage } from "https://deno.land/x/jotai@v2.10.2/src/vanilla/utils/atomWithStorage.ts";

Returns

SyncStorage<Value>

Parameters

getStringStorage: () => AsyncStringStorage
optional
options: JsonStorageOptions

Returns

AsyncStorage<Value>

Parameters

getStringStorage: () => SyncStringStorage
optional
options: JsonStorageOptions

Returns

SyncStorage<Value>