React Zustand Tutorial - 4 Multi States Selection and why shallow? (typescript)

Опубликовано: 07 Февраль 2026
на канале: Conny Gu
5,187
131

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"?