deno.land / x / jotai@v1.8.4 / website / src / atoms / index.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import { atom } from 'jotai';import { atomWithImmer } from 'jotai/immer';import { atomWithStorage } from 'jotai/utils';
export const menuAtom = atom(false);export const searchAtom = atom(false);export const helpAtom = atom(false);
export const textAtom = atom('hello');export const uppercaseAtom = atom((get) => get(textAtom).toUpperCase());export const darkModeAtom = atomWithStorage('darkModeDemo', false);export const countAtom = atomWithImmer(0);
jotai

Version Info

Tagged at
2 years ago