Props pass data from parent to child like HTML attributes: <Card title='Hello' count={5} />. Destructure props in the function: function Card({ title, count }). Props are read-only — never modify them inside the child.
Props
// Pass data to components via props
function Card({ title, body, image = "default.jpg" }) {
return (
{title}
{body}
);
}
// Use it
// Spread props
const data = { title: "Hello", body: "World" };