A deep dive tutorial series on Zustand - a React State Management Library.
This video is about how to select multiple states and why the "shallow" function is so important
Important update (1. 2024):
The latest zustand official documentation suggest to use the "useShallow()" instead of "shallow", please check here:
https://github.com/pmndrs/zustand?tab...
code for this tutorial:
https://github.com/niftybytes4u/react...
(Please follow the commit history, each video is a commit. )
Zustand github: https://github.com/pmndrs/zustand
Zustand documentation: https://docs.pmnd.rs/zustand/getting-...
00:21 Multi state selector
02:32 Why "shallow"?