Check out React 18’s useExternalStore hook with TypeScript and generics
Code:
👉 Practical Module Federation Book:
👉 No BS TS (The Book):
👉 I’m a host on the React Round-Up podcast:
👉 Don’t forget to subscribe to this channel for more updates:
👉 Discord server signup:
👉 VS Code theme and font? Night Wolf [black] and JETBrains Mono
0:00 Introduction
1:00 Project Recap
9:02 Typescript Setup
11:24 Converting The Store
13:24 Converting The Components
15:40 Removing Context
18:55 Moving useStore to the Store
21:19 Typescript Generics 101
26:30 Making useStore Generic
27:11 Making The Whole Store Generic
28:33 Deriving ...
#JackHerrington #react_18 #blue_collar_coder #jack_herrington_react18 #React_18 #React_18_new_hook #useExternalStore_hook #useExternalStore_hook_with_TypeScript #React_18’s_useExternalStore_hook #react_18_typescript
20220919
4MmmlWwlST4
1 view
646
185
6 months ago 00:02:00 1
Total War: WARHAMMER III - Thrones of Decay Announce Trailer
6 months ago 00:01:28 1
GTA VI Trailer In Real Life
6 months ago 00:08:04 1
KÖSTLICH! 💥 Dieter Nuhr stellt HABECK vor gesamten PUBLIKUM bloß!
6 months ago 00:11:10 16
The Rogue Prince of Persia - Official Gameplay | Triple-I Initiative Showcase
6 months ago 00:01:14 1
SnowRunner - Steam & Nintendo Switch Launch Trailer
6 months ago 00:08:01 5
8 Minutes Of Disney Epic Mickey Rebrushed Nintendo Switch Gameplay
6 months ago 00:03:24 2
Limp Bizkit - Out Of Style [Official Music Video]
6 months ago 00:08:56 8
NVIDIA’s New Tech: Master of Illusions!
6 months ago 02:00:18 1
Witcher’s Respite: The Witcher Ambience - Orchestral Ambient Music for deep Focus and Relaxation
6 months ago 00:00:00 1
Live: Post Office Horizon inquiry continues as former chair Sir Michael Hodgkinson gives evidence
6 months ago 05:02:16 1
Live: Post Office Horizon inquiry continues as compensation advisor Lord Arbuthnot gives evidence
6 months ago 01:32:31 1
Live: South Korean officials begin counting ballots after polls close in 22nd parliamentary election