React state management libraries in 2022

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

  • There are many and I like Zustand

  • effector-react

    Business logic with ease ☄️

  • https://ngneat.github.io/elf/ https://effector.dev/

  • 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.

    SurveyJS logo
  • thin-backend

    🔥 Thin Backend is a Blazing Fast, Universal Web App Backend for Making Realtime Single Page Apps

  • Another way to deal with global state is by making everything realtime using tools like thin.dev. When all data is realtime you're basically using the actual database as the state store. When using tools like zustand or redux you will always replicate a subset of the database schema on the client side. Using realtime data everywhere with thin.dev can save a lot of this boilerplate :)

  • hookstate

    The simple but very powerful and incredibly fast state management for React that is based on hooks

  • I have been using Hookstate, curiously aanbidt never mentioned in lists like this.

  • reactn

    Discontinued React, but with built-in global state management.

  • I love ReactN.

  • state

    🚀 Tiny and powerful React hook-based state management library. (by oleystack)

  • I’ve used almost all libs you mentioned, and then created my own https://github.com/bit-about/state . I use it on my newest projects and fills all my needs :3

  • valtio

    💊 Valtio makes proxy-state simple for React and Vanilla

  • Have you looked at Valtio at all? Same author as zustand.

  • 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.

    WorkOS logo
  • unstated-next

    200 bytes to never think about React state management libraries ever again

  • I'm still using unstated-next, its another straightforward one that extends useContext

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