jotai
👻 Primitive and flexible state management for React
About this project
visit jotai.org or npm i jotai Jotai scales from a simple useState replacement to an enterprise TypeScript application. — Minimal core API (2kb) — Many utilities and extensions — No string keys (compared to Recoil) Examples: Demo 1 Demo 2 First, create a primitive atom An atom represents a piece of state. All you need is to specify an initial value, which can be primitive values like strings and numbers, objects, and arrays. You can create as many primitive atoms as you want. Use the atom in your components It can be used like React.useState: Create derived atoms with computed values A new read-only atom can be created from existing atoms by passing a…
Technologies
Project health
GitHub
Reviews
Built by
Maintain pmndrs/jotai? Claiming verifies admin access through your GitHub account and gives you control of this listing.
