Skip to main content
Module

x/jotai/docs/introduction.mdx

👻 Primitive and flexible state management for React
Go to Latest
File
---title: Introductiondescription: Table of contentsnav: 0---
Welcome to the Jotai documentation! Jotai is a primitive and flexible state management library for React. It takes a bottom-up approach with an atomic model inspired by Recoil.
## Features
- Minimal API- TypeScript oriented- Tiny bundle size (3kb)- Many extra utils and official integrations- Supports Next.js and React Native## Installation
`npm install jotai` or `yarn add jotai`
## Basics
Learn the basic concepts and primitives of the library, discover how it compares with other solutions, and see examples of it in use.
<TOC section="basics" />## Guides
These guides can help with common use cases such as async behavior, TypeScript, and Next.js.
<TOC section="guides" />## API
Jotai has a very minimal API, exposing only a few exports from the main `jotai` bundle. Each is explained in more detail in the Core doc. Jotai also has a nice devtool for debugging and a few helpful Babel plugins.
<TOC section="api" />## Utilities
Jotai also includes a `jotai/utils` bundle with a variety of extra utility functions. One example is `atomWithStorage`, which includes localStorage persistence and browser tab synchronization.
<TOC section="utils" />## Integrations
Jotai has separate bundles for many official integrations including `atomWithQuery` for React Query and `atomWithMachine` for XState, among many others.
<TOC section="integrations" />## Advanced recipes
These recipes can help with more advanced patterns.
<TOC section="advanced-recipes" />