🌐Props
Also known as Properties, Component Props, Component Inputs
The inputs a component gets from the part that holds it.
Think of it like
Think of it like a name tag you hand to someone. They wear whatever name you give them.
Example
Lucy's page uses the same Button component three times. Its label prop is Save, Cancel and Delete.
Why it matters
Props are what make components reusable. Data flows down through them.
Definition
Example code
jsx
<Greeting name="Emma" />
<Greeting name="Jack" />Common mistake
Key takeaways
- 1Inputs from the parent. Passed down, not up.
- 2Read, do not change. The parent owns the value.
- 3Makes reuse easy. Same part, different data.