Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
197いいね 8,133 views回再生

React Zustand Tutorial - 2. get(), set() and the immer middleware (typescript)

A deep dive tutorial series on React,js Zustand - a State Management Library.

This video is about how to use the set() and get() functions in the global store in combination with the Immer middleware for updating deep nested states.

Github for this tutorial:
https://github.com/niftybytes4u/react...
(Please follow the commit history, each video is a commit. )

React Zustand github: https://github.com/pmndrs/zustand
React Zustand documentation: https://docs.pmnd.rs/zustand/getting-...
React Zustand update immutable state: https://docs.pmnd.rs/zustand/guides/i...
React Zustand immer middleware: https://docs.pmnd.rs/zustand/guides/u...

00:00 begin
00:27 how to use the set() function
10:00 immer middleware for updating deep nested states
12:31 how to use the get() function

コメント