Jotai
ELI5 — The Vibe Check
Jotai treats state like individual atoms that you can combine like molecular chemistry. Instead of one big store, you create tiny pieces of state that compose together. It's like building with atoms instead of dumping everything in one giant state bucket.
Real Talk
Jotai is a primitive and flexible state management library for React that uses an atomic model. Each piece of state is an atom that can be read, written, and derived from independently, enabling fine-grained re-renders without selectors or memoization.
Show Me The Code
const countAtom = atom(0);
const doubledAtom = atom((get) => get(countAtom) * 2);
const [count, setCount] = useAtom(countAtom);
When You'll Hear This
"Jotai atoms compose beautifully for derived state" / "No providers, no context, just atoms"
Related Terms
Recoil
Recoil was Meta's experiment in atomic state management for React. It lets you create atoms and selectors that feel native to React's concurrent features.
Signals
Signals are like tiny radio transmitters for your data. When a value changes, only the exact things listening to that signal update.
Zustand
Zustand is German for 'state' and it's the state management library that makes Redux look like doing your taxes.