Zustand provides a simple API to create global state stores and subscribe to them via selectors. It provides the bear minimum to get you started (hence the logo), and it's flexible enough to scale to your needs. It doesn't track which fields you are using like other libraries do - you have to subscribe "
Table of contents
ZustandOnly export custom hooksPrefer atomic selectorsSeparate Actions from StateModel Actions as Events, not SettersKeep the scope of your store small4 Comments
Sort: