A primitive and flexible state management library for React, scaling from useState replacement to enterprise apps.
Jotai is a state management library for React that uses atomic state primitives to manage application state. It solves the complexity of global state management by providing a simple, scalable API that works from small components to large TypeScript applications. Unlike other solutions, it avoids string keys and offers a functional programming approach.
React developers who need a lightweight yet powerful state management solution, especially those building complex applications with TypeScript or preferring functional programming patterns.
Developers choose Jotai for its minimal 2kb core, flexible atom-based API, excellent TypeScript support, and avoidance of string keys compared to alternatives like Recoil. It scales seamlessly from simple useState replacements to enterprise applications.
👻 Primitive and flexible state management for React
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The core API is only 2kb, as stated in the README, keeping applications lightweight without sacrificing functionality.
Atoms are referenced directly without string identifiers, unlike Recoil, reducing bugs and improving TypeScript type safety.
Supports computed, async, and writable derived atoms with automatic updates, allowing complex state logic as shown in the README examples.
Embraces monadic patterns for modular and pure code, optimized for change, as highlighted in the philosophy and documentation links.
Compared to Redux, Jotai has fewer third-party middleware and dev tools, requiring custom solutions for advanced features like persistence or debugging.
Asynchronous atoms require React Suspense, which can be a limitation for projects avoiding or not yet adopting Suspense patterns, as noted in the README badges.
The functional programming approach and atom monads may be unfamiliar to developers accustomed to more imperative state management, increasing onboarding time.
Jotai is an open-source alternative to the following products: