Complete example
Here’s a complete working example you can copy:Next steps
Core concepts
Learn about atoms, derived atoms, and async atoms
Utilities
Explore built-in utilities like atomWithStorage
TypeScript
Learn TypeScript patterns and best practices
API reference
Explore the complete API documentation
What makes Jotai special?
- Minimal API - Just 2kb core with a simple, intuitive API
- No string keys - Unlike Recoil, atoms are referenced by identity
- TypeScript-first - Full type inference and type safety
- Flexible - Works with Next.js, React Native, and any React app
- Performance - Only re-renders components that use changed atoms