Review of state management in React: kinds of lightweight trials - MobX, Zustand, Jotai and Valtio

This page summarizes the projects mentioned and recommended in the original post on dev.to

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
  • review-of-state-management-in-react

    Codebase for the series of Review of state management in React

  • As mentioned previously, with the example of the composite clock built with MVC pattern from the initial article as a baseline, for each lightweight trial, I would rebuild the same example module with it and review how good it is in comparison with the baseline.

  • zustand

    🐻 Bear necessities for state management in React

  • And for view components, there are AnalogueView.ts for the analogue clock, DigitalView.ts for the digital clock, and CompositeView.ts as a glue. Another noticeable tip is, the default practice of creating a store in Zustand only assigns the initial state statically on its creation but not dynamically on a view component initialization, so I would follow the official guide to use a React context for assigning the initial state dynamically on a view component initialization when needed.

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