Which state management library should I use?

This page summarizes the projects mentioned and recommended in the original post on /r/reactjs

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • zustand

    🐻 Bear necessities for state management in React

    For global state, Zustand or RTK

  • redux-toolkit

    The official, opinionated, batteries-included toolset for efficient Redux development

    For global state, Zustand or RTK

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • TanStack Query

    🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

    For server cache management, React Query or SWR

  • SWR

    React Hooks for Data Fetching

    For server cache management, React Query or SWR

  • jotai

    👻 Primitive and flexible state management for React

    For atoms, Jotai or Zedux

  • zedux

    :zap: A Molecular State Engine for React

    For atoms, Jotai or Zedux

  • signia

    Reactive signals that scale, by tldraw.

    For signals, Signia or Legend State.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • legend-state

    Legend-State is a super fast and powerful state library that enables fine-grained reactivity and easy automatic persistence

    For signals, Signia or Legend State.

  • statux

    ⚛️ The easy state management library for React with Hooks

  • react-hands

    A lightweight, simple and easy to use react state management library purely based on react's built in hooks like useContext and useReducer.

    Oh man I have checked out your library and loved it, and I had also made a similar library: https://github.com/javaScriptKampala/react-hands a last month or so, but now all this time I plan to rewrite all of it to better after digging more into the state management land and learning about what other big players are doing and why, one thing I still don't like about existing solutions though, they don't seem react-ish to a react developer, they seem very abstract and follow wired patterns, so now am like what if we make a library that is doing all the crazy things to manage state efficiently under the hood, but on surface behaves and has a similar pattern to useState or react hooks that to a react dev it feels so natural? And checking out your library, it seems it is what I wanted to create just with a few differences, I got some even interesting ideas on this, so how can we team up?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts