Honestly, what is the best, pain-free state management in React right now?

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
  • redux-toolkit

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

  • I would actually be very interested in having you at try out that new "listener middleware" and give us some feedback on how it compares with using sagas. I'm not asking you to go rewrite your whole app :) But our goal has been to replace maybe 75% of the things that users could do with sagas, and so I'm really curious to see if we've managed to accomplish that goal.

  • zustand

    🐻 Bear necessities for state management in React

  • That being said, I recently used Zustand for two bigger apps and I have to admit it's amazing. Performance is pretty neat (so far) and the state is already quite complex, but still greatly managable (and expandable).

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

    React state management library

  • You can have a look at mine :) educe.js

  • saga-query

    Data synchronization using a middleware system for front-end apps

  • Redux + saga-query

  • mobx-react

  • Um, hello, MobX? You don't have to like it but it has 6x the weekly downloads as Recoil does, so it should at least be mentioned.

  • react-easy-state

    Simple React state management. Made with ❤️ and ES6 Proxies.

  • Nope, react-easy-state is much easier: https://github.com/RisingStack/react-easy-state

  • effector-react

    Business logic with ease ☄️

  • EffectorJS

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

    RFCs for changes to React (by reactjs)

  • To be clear: this is not a made up problem. There is a React RFC on the topic since June 2019, there is an experimental PR to the React codebase for this since January 2021. There are external packages like use-context-selector to work around it. As of today, there is no efficient way of partially subscribing to context value changes that is a native part of React.

  • React

    The library for web and native user interfaces.

  • To be clear: this is not a made up problem. There is a React RFC on the topic since June 2019, there is an experimental PR to the React codebase for this since January 2021. There are external packages like use-context-selector to work around it. As of today, there is no efficient way of partially subscribing to context value changes that is a native part of React.

  • use-context-selector

    React useContextSelector hook in userland

  • To be clear: this is not a made up problem. There is a React RFC on the topic since June 2019, there is an experimental PR to the React codebase for this since January 2021. There are external packages like use-context-selector to work around it. As of today, there is no efficient way of partially subscribing to context value changes that is a native part of React.

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