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

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

На главную

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

28,214 просмотров • 2 лет назад •via X (Twitter)

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

Фото профиля George Moller
George Moller2 лет назад

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 | 🇸🇳🇫🇷2 лет назад

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 Moller2 лет назад

Glad you liked it :)

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

This is nice!

Фото профиля Daan
Daan2 лет назад

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

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

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

Фото профиля kmylo
kmylo2 лет назад

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

Фото профиля Youry
Youry2 лет назад

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

Фото профиля Casey Key
Casey Key2 лет назад

How did your create this animation?

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