| What it is | Proxy-based state for React and vanilla JavaScript | Bear necessities for React state | Simple, scalable state management | Atomic state management for React |
| Features | - mutate state directly with ordinary assignments
- useSnapshot re-renders a component only when the state it reads changes
- subscribe to changes from outside React
- Suspense support for promises in state
- Redux DevTools integration through valtio/utils
- proxySet and proxyMap helpers and computed properties
| - stores as hooks, no providers
- selectors that re-render only on change
- works with React, React Native and vanilla JavaScript
- middleware for devtools, persistence, Redux-style reducers and Immer
- TypeScript types
| - observable state updated with plain assignments
- computed values and reactions
- re-renders only the components that use changed state
- works outside any UI framework
- React bindings (mobx-react-lite)
| - Primitive atoms used with useAtom like React's useState
- Derived atoms computed from other atoms, including async ones with Suspense
- Writable and write-only derived atoms for actions
- Minimal core of about 2 kB with no string keys
- Extensions for TanStack Query, tRPC, Immer, Redux, XState, Zustand, URL location and more
|