on Apr 29th 2025
It's been a while since i've been using tools like RTK(Redux toolkit) and Recoil for handling GSM(Global State management) in modern and flexible React/Next-based web applications, A few months back i came across Zustand, a flexible library for managing Global state by using a comfy Api based on hooks, it's simple, not boilerplatey, nor opinionated, for conceptually managing Global State it's adopted an immutable state model which makes developers' life easier for fast-changing operational implementations, the coolest thing that i love most with it is that we don't even need to wrap the top-most application component with a Provider to access all the state across the entire project and furthermore we're free to decide whether we want to persist state by leveraging one of the three storage like Session storage, Async storage or IndexDb, lastly for putting a dot on its core capabilities it lets inspect your application state on your own taste by using Browser console or the Redux tool, so with all that being said it changes myriad things for me like simplifying and boosting the code quality of my projects, it's a great tool to master and use in your day-to-day projects, you can give a try if you see it necessary.