Smarter and Simpler React State
Can we get away from dependency arrays by using “global” state managers locally. This video was sponsored by Brilliant. To try everything Brilliant has to offer—free—for a full 30 days, visit http://brilliant.org/JackHerrington/. The first 200 of you will get 20% off Brilliant’s annual premium subscription.
Code: https://github.com/jherr/local-state-with-state-mgrs
👉 I’m a host on the React Round-Up podcast: https://devchat.tv/podcasts/react-round-up
👉 Don’t forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ
👉 Discord server signup: https://discord.gg/ddMZFtTDa5
👉 VS Code theme and font? Night Wolf [black] and Operator Mono
👉 Terminal Theme and font? oh-my-posh with powerlevel10k_rainbow and SpaceMono NF
0:00 Introduction
1:50 Local State With Hooks
11:18 Local State With Zustand
16:52 Local State With Valtio
20:17 Local State With Jotai
25:54 Outroduction