⚛️ React + Typescript tip:
@_georgemoller118K followers
77,712 views
12 Comments
Comments from the original post on X (Twitter)

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

@pavl_ro
One of the best react + typescript tips. It makes the overall code flow so much easier and enforce specific rules whenever needed.
2 likes

@_georgemoller
I agree, this is such a common use case for React developers! it's great to have a way to type it.
1 like

@WebDevCodi
Typescript version ohhhh yeah. Nice 👍
1 like

@_georgemoller
oh yeah, typescript + react tips are coming my friend!
1 like

@codewithshripal
Loved this tip 🤩
1 like

@_georgemoller
Glad you liked it Shripal!
1 like

@NORMALPICTURES
Where’s the discrimination here ? Dang libs 🇺🇸 🍺
1 like

@frederic_ooo
a good idea is to keep all members of the union with the same keys, but set the ones that aren’t supposed to be there as *optional never*. this will help you when writing the body of the component without needing to check for the existence of properties
1 like

@p4r4n01d73
what tool do you use for animation ?

@vsatonin
Wtf 🥴

@iam_daparth
A super tip! Really cannot imagine working in React + TS without this.
