← React Field Guide
Concept 4 of 11
Props
✦ Tap any highlighted term to learn more
are how you pass data into a . They work like arguments — the parent provides them, and the child receives them. The name '' is short for .
flow in one direction: from parent to child. A cannot modify its own . If you want to change data, that data needs to live in (covered in the next lesson).
You pass as attributes in : <Greeting name="Tolu" />. Inside the , you receive them as a single and destructure what you need: Greeting({ name }).
You can pass any value as a — strings, numbers, booleans, , , and even . For non-string values, wrap them in curly braces: <Card price={1500} active={true} />.