Passing Props and Children to a Component in React

preview_player
Показать описание
React Components use props to communicate with each other. Parent components can pass information to it's child component by giving them props. Parent components can also render child components meaning you can have one component such as a Card component that can render different things inside such as text or an Avatar. These are the children.

Want to learn more?
Come watch as I walk you through the new React docs and take on the coding challenges at the end.

Рекомендации по теме
Комментарии
Автор

Hey Debbie,
Interesting that you use documentation to teach!
Reading documentation is an essential skill!

barny
Автор

I didn't even watch this tutorial and I'm already smiling!! Nice energy!

whateverzdred
Автор

How to pass a button component into a props?

afzolmiah