Check out React 18's useExternalStore hook with TypeScript and generics
Автор: Jack Herrington
Загружено: 2022-09-19
Просмотров: 23845
Code: https://github.com/jherr/syncexternal...
👉 Practical Module Federation Book: https://module-federation.myshopify.c...
👉 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-rou...
👉 Don't forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ
👉 Discord server signup: / discord
👉 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 The Store Type
29:15 Outroduction
#react18 #useExternalStore
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: