Generic ReactJS Render Functions // 3 minute tip

Generic ReactJS Render Functions // 3 minute tip

basarat

2 года назад

2,635 Просмотров

Ссылки и html тэги не поддерживаются


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

starter dev
starter dev - 25.06.2022 07:42

This video is so underrated, I love the style of teaching

Ответить
Todd Howard
Todd Howard - 10.06.2022 05:46

Hey can you do a video on strict typing with generics for common components in react

Ответить
xdrfvgyhn64
xdrfvgyhn64 - 09.06.2022 09:11

My mind was blown when I realized I could do this! I actually made this for my custom carousel component and my own suspense implementation, because I didn't really like React's suspense component 😅 But this feature made those waaaay easier to make! This is why I love Typescript!

Ответить
Lyrics Mint
Lyrics Mint - 08.06.2022 21:51

How'd you consider this is generic.? If i have to more specific about object keys..? i have to be specific with structure as well.! Any tip on making it dynamic.?

Ответить
ali abdi
ali abdi - 08.06.2022 18:54

This is great!
but how we can fix the "key" problem here? as the official react doc says, using the index as a key is a mistake

Ответить
Beriu
Beriu - 08.06.2022 17:13

This is kinda cool, this is something specific to JSX, I don't think you can do something similar in the other js frontend frameworks

Ответить
Hooyah
Hooyah - 08.06.2022 17:02

first

Ответить