MENU

Fun & Interesting

Making React Context FAST!

Jack Herrington 91,482 2 years ago
Video Not Working? Fix It Now

Let's make context as fast as any state manager out there by only using the hooks baked right into React. Code: https://github.com/jherr/fast-react-context 👉 Practical Module Federation Book: https://module-federation.myshopify.com/products/practical-module-federation 👉 No BS TS (The Book): https://no-bs-ts.myshopify.com/ 👉 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 JETBrains Mono 0:00 Introduction 0:49 Demo Application Walkthrough 4:23 Simple useState Based Context 10:24 Does Memoization Help? 11:09 Creating A Ref-Based Fast Context 24:22 Porting to useSyncExternalStore 26:04 Adding Selector Support 28:46 Making Fast Context Generic 32:38 Outroduction #react18 #reactjs

Comment