Комментарии:
This video is so underrated, I love the style of teaching
ОтветитьHey can you do a video on strict typing with generics for common components in react
Ответить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!
Ответить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.?
Ответить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
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
Ответитьfirst
Ответить