With the advent of hooks a lot of ReactJS developers have moved away from Redux as the default state management of choice.
However is simply using useState, useReducer, and the context API good enough? I highly recommend checking out Zustand! Dead simple and unopinionated state management!
Zustand is a small, fast and scaleable bearbones state-management solution. Has a comfy api based on hooks, isn't boilerplatey or opinionated, but still just enough to be explicit and flux-like.
In this video we're going to walk through the basics of using Zustand. We'll also discuss the pros and cons of this approach compared to reducer-based and context-based solutions like the useReducer hook and Redux.
Let me know what you think of Zustand!
Top comments (1)
As a follow up, I also explored Jotai recently: