Show HN: SimpleR State – simplest state management for React

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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

    The simplest app state management for React

  • Hi. There are LOTS of much more popular libs you can choose from. My library does not intend to compete as the "best" library, but it has a very specific set of goals, the topmost of which is simplicity through a minimalist API.

    Everyone has different priorities when choosing a library, so I suggest going through the design goals that I highlighted in the README file, or complete documentation here:

    https://simpler-state.js.org

    and see if it fits what you're specifically looking for in a library.

    At the end of the day, all these libraries are just React code. In that sense they differ in terms of patterns/principles behind their implementation, but maybe more importantly, in the API/syntax (which is what immediately matters to the developer using it). This is what I can confidently say that SimpleR State delivers... one of the simplest APIs you can find.

  • react-atomic-state

    Dead simple React global state management based on use-sync-external-store.

  • I wrote a lib with a very similar API: https://github.com/zoontek/react-atomic-state

    It rely on https://github.com/facebook/react/tree/master/packages/use-s..., which make it safe to use in concurrent mode and the implementation a lot simpler.

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

    🐻 Bear necessities for state management in React

  • If you want a simple and elegant state management module then check out Zustand. I have been using this for a year or a bit more and am absolutely happy with it.

    https://github.com/pmndrs/zustand

  • redux-toolkit

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

  • Out of curiosity, any specific features of Rematch and Easy-Peasy that you specifically like that aren't covered in Redux Toolkit? I've actually got an RTK issue open asking for ideas and concepts that we can learn from them:

    https://github.com/reduxjs/redux-toolkit/issues/527

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