Jotai란?
const countAtom = atom(0);
const [count, setCount] = useAtom(countAtom);특징
- 상태를 작은 "원자"로 분해
- 파생 atom (computed)
- async atom, storage atom
- 번들 작음
Atom 기반 React 상태 관리. 작은 원자 상태들을 조합. Recoil의 단순화 버전.
const countAtom = atom(0);
const [count, setCount] = useAtom(countAtom);