substitutefor

software · Q837

Substitutes for Jotai

Open-source React state management built from composable atoms, with scoped stores and optional browser persistence.

Suggest a correction

Compare your options

Find a substitute for Jotai

Start with what you need to do. Compare the fit, differences, and sources for each option.

2 options

Redux Toolkit

Suggested match

Already compared with Jotai. Its fit as a replacement still needs assessment.

How Jotai compares as a replacement

Shared React client state without requiring Redux action and slice architecture limited

Jotai → Redux Toolkit

Can replace Redux Toolkit for shared React client state after translating reducers, selectors and dispatch-based updates into atoms. Choose it when atom composition fits the application. Existing middleware behavior and RTK Query server-data caching require separate treatment; this is not a drop-in API replacement.

Platforms: React applications · Region: Version and application integrations apply

Sources for this comparison (3)Article revision 885

Zustand

Sourced comparison

Shared React client state organized in object stores limited

Zustand → Jotai

Can replace Jotai for shared React client state when an object store with explicit actions and selectors suits the application. Reimplement atom dependencies and update logic, and preserve per-subtree store lifetimes where needed. This is a change of state model rather than compatible atom APIs.

Platforms: React applications · Region: Version and framework configuration apply

Sources for this comparison (3)Article revision 1477
How Jotai compares as a replacement

Shared React client state and derived values limited

Jotai → Zustand

Can replace Zustand for shared React state when composable atoms and dependency-based subscriptions suit the application. Rewrite store reads, update actions and derived state; verify Provider scope and persisted-data handling. This is not API or middleware compatibility and does not imply a measured performance advantage.

Platforms: React applications · Region: Version and framework configuration apply

Sources for this comparison (4)Article revision 885

Overview

Jotai is an MIT-licensed state-management library for React applications. It represents shared values as atoms and builds derived state by tracking dependencies between them. It can substitute for a centralized Zustand store when a project prefers independently composed state units, while requiring changes to subscriptions, updates and persistence. Providers can scope the same atom definitions to separate component trees.[1][3][8][9]

Building state from atoms

Primitive atoms hold values such as a selected item, filter or draft field. Derived atoms read other atoms to calculate a value, and writable atoms can coordinate updates. Jotai tracks reads in a derived atom so the dependency graph determines which calculations need updating. This organization can suit an application whose features own small pieces of shared state, rather than requiring every value to live in one application-wide object. Atom definitions are objects with identities: recreating them during every render can cause update loops, so dynamically created definitions need stable references.[1][2]

Store scope and server rendering

Atom definitions do not themselves contain their current values; stores do. A Provider supplies a store to a component subtree, and separate Providers can give the same definitions independent values. This is useful for isolated editor panels or multiple instances of a widget. The store API also exposes get, set and subscription methods for code outside React components. Without a Provider, Jotai uses a default store.[3][4]

Server-rendered applications need deliberate request isolation. The Next.js guide warns that a long-lived default store can share values across requests and recommends a Provider whose lifetime is limited to the request. Moving from a client-only prototype to server rendering therefore involves more than copying the same module-global state setup.[6]

Saving selected state

The optional atomWithStorage utility connects an atom to storage. Its default implementation uses browser localStorage with JSON serialization and listens for storage events between tabs; custom implementations can use other storage. Parsed JSON still needs validation when an application expects a particular shape. Server rendering cannot read the browser's stored values, so an initial server value may differ from the saved client value. The storage guide describes guarding server access and delaying dependent content until the client has hydrated. A persisted preference is useful, but persistence alone does not provide a database or a cross-device synchronization service.[5]

Version requirements

The published 3.0.1 package declares an MIT license. The v3 migration guide specifies React 18, TypeScript 5.5 and Node.js 22.12 or newer where those tools are used. Version 3 supplies ESM builds and restricts package exports to documented entry points. Some formerly bundled utilities moved to separate packages, including atomFamily and the Babel plugins. Existing snippets should be checked against the installed major version, particularly when generated code assumes older utility imports.[7][8]

When it can substitute for Zustand

Jotai can substitute for Zustand for shared React client state when a team prefers composing primitive and derived atoms. Zustand groups values and update actions in stores and commonly uses selectors for subscriptions; Jotai follows atom dependencies. Choosing Jotai can keep a feature's state and derived values close to its components, while Zustand may fit a straightforward module-level store. Migration requires rewriting reads and update operations and checking store scope, derived calculations and persisted data. The overlap does not establish API or middleware compatibility, or guarantee a performance improvement.[3][5][9][10]

When it can substitute for Redux Toolkit

Jotai can also substitute for Redux Toolkit when a React application needs shared client state but its team prefers atom reads and writes over action dispatch and slice reducers. Derived atoms can express relationships among values without organizing them into Redux slices. Existing reducers, selectors and middleware behavior need to be reimplemented or retained separately. Redux Toolkit also includes optional RTK Query for fetching and caching server data; replacing client state with Jotai does not by itself reproduce that cache or its request lifecycle. The decision is about the state model that suits the application, rather than a universal ranking of the libraries.[1][2][11]

Capabilities & limitations

No capabilities listed yet. Add a sourced description through the article’s correction form.

References

  1. Jotai overview

    Atomic state, derived values and separate reading/writing hooks

    vendor · retrieved 2026-10-09
  2. Jotai atom API

    Primitive and derived atoms; tracked dependencies; stable object identity

    vendor · retrieved 2026-10-09
  3. Jotai Provider

    Subtree stores, default store and remount reset

    vendor · retrieved 2026-10-09
  4. Jotai store API

    get, set and sub methods outside component hooks

    vendor · retrieved 2026-10-09
  5. Jotai storage utilities

    atomWithStorage, JSON validation, server rendering and hydration

    vendor · retrieved 2026-10-09
  6. Jotai Next.js guide

    Provider lifetime and request isolation

    vendor · retrieved 2026-10-09
  7. Jotai v3 migration

    React, TypeScript and Node requirements; ESM packaging; moved utilities

    vendor · retrieved 2026-10-09
  8. Jotai 3.0.1 package metadata

    Published package license field: MIT; version and engine requirements

    vendor · retrieved 2026-10-09
  9. Jotai comparison with Zustand

    Atom composition versus object stores and module/context organization

    vendor · retrieved 2026-10-09
  10. Zustand comparison with other tools

    Jotai: state model and render optimization

    vendor · retrieved 2026-10-09
  11. Redux Toolkit introduction

    configureStore, createSlice, React Redux bindings and separate optional RTK Query

    vendor · retrieved 2026-10-09
  12. https://jotai.org/docs/basics/comparison

    How Jotai differs from Zustand: atom composition, store organization and use cases.

    assessment · retrieved 2026-10-09

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
8852026-10-13 12:21:33/* wbeditentity-create-item:0| */ sf:e2055c1e-465e-4fb8-800c-c5e619d0b555:v2 | Add Jotai as a substitute for Zustand and Redux Toolkit, with task-specific connections and developed guidance on atom composition, store scope, persistence and | attribution: /proposals/e2055c1e-465e-4fb8-800c-c5e619d0b555