Skip to main content
Module

x/jotai/src/vanilla.ts

👻 Primitive and flexible state management for React
Latest
File
export { atom } from './vanilla/atom.ts'export type { Atom, WritableAtom, PrimitiveAtom } from './vanilla/atom.ts'
// export { createStore, getDefaultStore } from './vanilla/store.ts'import * as store from './vanilla/store.ts'import * as store2 from './vanilla/store2.ts'type CreateStore = typeof store.createStoretype GetDefaultStore = typeof store.getDefaultStoreexport const createStore: CreateStore = import.meta.env?.USE_STORE2 ? store2.createStore : store.createStoreexport const getDefaultStore: GetDefaultStore = import.meta.env?.USE_STORE2 ? store2.getDefaultStore : store.getDefaultStore
export type { Getter, Setter, ExtractAtomValue, ExtractAtomArgs, ExtractAtomResult, SetStateAction,} from './vanilla/typeUtils.ts'