Загрузка видео...

Не удалось загрузить видео

На главную

⚛️ How to use discriminated unions in TypeScript to represent mutually exclusive states in React↓

28,192 просмотров • 1 год назад •via X (Twitter)

Комментарии: 9

Фото профиля George Moller
George Moller1 год назад

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and 77 video tutorials just like this one. Check them out ↓

Фото профиля Ndeye Fatou Diop 🚢 💻 | DEV | 🇸🇳🇫🇷
Ndeye Fatou Diop 🚢 💻 | DEV | 🇸🇳🇫🇷1 год назад

This is the best way to represent loading data and the one I use. Unfortunately I often see this representation type Response<T, E> = { isPending: Boolean, error: T | null, data: T} which can represent invalid states

Фото профиля George Moller
George Moller1 год назад

Glad you liked it :)

Фото профиля David K 🎹
David K 🎹1 год назад

This is nice!

Фото профиля Daan
Daan1 год назад

Really like your new video style! Can you point out a good Typescript course?

Фото профиля Wk - Kevin
Wk - Kevin1 год назад

I have another one, its called “react-query”

Фото профиля kmylo
kmylo1 год назад

shouldn't be better an enum or even better an obj as const? instead of work with literal strings?

Фото профиля Youry
Youry1 год назад

@_georgemoller thanks for sharing it! Just wondering what tool do you use to record the videos? They are really good 👍

Фото профиля Casey Key
Casey Key1 год назад

How did your create this animation?

Похожие видео