docs/index.mdx
Welcome to the Jotai v2 documentation! Jotai's atomic approach to global React state management scales from a simple useState replacement to an enterprise application with complex requirements.
Jotai has a very minimal API, exposing only a few exports from the main jotai bundle. They are split into four categories below.
Jotai also includes a jotai/utils bundle with a variety of extra utility functions. One example is atomWithStorage, which includes localStorage persistence and cross browser tab synchronization.
Jotai has many officially maintained extensions including atomWithQuery for React Query and atomWithMachine for XState, among many others.
Beyond the official extensions, there are many third-party community packages as well.
<TOC section="third-party" />Use SWC and Babel compiler plugins for React Fast Refresh support and debugging labels. This creates the best developer experience when using a React framework such as Next.js or Waku.
<TOC section="tools" />Learn the basic concepts of the library, discover how it compares with others, and see usage examples.
<TOC section="basics" />Guides can help with use common cases such as TypeScript, React frameworks, and basic patterns.
<TOC section="guides" />Recipes can help with more advanced patterns.
<TOC section="recipes" />