Back to Browse

Zustand vs StateAdapt

702 views
Oct 30, 2023
33:21

Zustand is a very popular state management library, mostly used in #React. I refactored 2 apps to StateAdapt and the code got smaller and less imperative. 0:00 Zustand vs StateAdapt 0:38 Popularity 2:12 Zustand is NOT Flux-like 5:36 Zustand bundle probably smaller 6:10 Demo - Fifa 6:29 StateAdapt Setup - Fifa 7:10 Zustand - Fifa 8:19 StateAdapt - Fifa 15:39 Comparing LOC - Fifa 16:43 Demo - Admin 17:05 Zustand - Count - Admin 18:18 StateAdapt - Count - Admin 19:26 Zustand - Settings - Admin 20:12 StateAdapt - Settings - Admin Note: I shouldn't have used `reset`, because that resets to `initialState`, which comes from `localStorage`. So I should have kept it as `noop` probably. 24:30 Zustand - User - Admin 27:00 StateAdapt - User - Admin 29:32 Comparing LOC - Admin 30:00 Closing thoughts - why I care about StateAdapt

Download

0 formats

No download links available.

Zustand vs StateAdapt | NatokHD