Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

28,192 Aufrufe • vor 1 Jahr •via X (Twitter)

9 Kommentare

Profilbild von George Moller
George Mollervor 1 Jahr

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 ↓

Profilbild von Ndeye Fatou Diop 🚢 💻 | DEV | 🇸🇳🇫🇷
Ndeye Fatou Diop 🚢 💻 | DEV | 🇸🇳🇫🇷vor 1 Jahr

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

Profilbild von George Moller
George Mollervor 1 Jahr

Glad you liked it :)

Profilbild von David K 🎹
David K 🎹vor 1 Jahr

This is nice!

Profilbild von Daan
Daanvor 1 Jahr

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

Profilbild von Wk - Kevin
Wk - Kevinvor 1 Jahr

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

Profilbild von kmylo
kmylovor 1 Jahr

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

Profilbild von Youry
Youryvor 1 Jahr

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

Profilbild von Casey Key
Casey Keyvor 1 Jahr

How did your create this animation?

Ähnliche Videos