React TypeScript Tutorial - 18 - Component Prop

preview_player
Показать описание

📱 Follow Codevolution

Component Prop with React and TypeScript
React TypeScript Tutorial on Component Prop
Рекомендации по теме
Комментарии
Автор

1:22 dynamic component type to return.
Excellent! Gratitude.

rishiraj
Автор

Hi sir, thanks for the amazing video, at 04:36, why is it `component: Component` instead of just `component` in the function args declaration

zhiweilin
Автор

Thank you sir, you're awesome mentor

shakilbabu
Автор

In this video, does your code demonstrate higher order component??

Rohitkumar-dpch
Автор

At 4:30 in Private.tsx the variable casing was changed to "component" ... I believe it should have been changed in line 12 as well.

tonyg_nerd
Автор

For example in const Profile we can use : React.FC type?

reuelsiIva
Автор

how to destructure all properti in native button on commponent only 1 props like <button {...props}>btn</button> an in the component i just say <Button id="id" name='name' class='class'/>

yotsusan_machi
Автор

Thanks for the video but what is the use case of this component prop ? Can you give any real time use case in projects?

aksh
Автор

What's the difference of React.ComponentType vs React.ReactNode. I saw React.ReactNode used in a different video for the children prop.

Pratheepmy
Автор

Thank you. I modified my code accordingly with your tutorial but I have this issue:
JSX element type 'componentContent' does not have any construct or call signatures.ts(2604)

Does anyone know how to fix this?

marco-
Автор

why not just import the component instead of passing it in props?\

abderrahmaniidrissihamza
Автор

why React.Component? NOT React.ReactNode?

yash-dev
Автор

Hello ji, pls make videos frequently and little quicker if possible, it's great content...

saisashankchavaly