Services Work Learn About Contact
0/10
Lesson 3 of 10

Props

Props (short for properties) let you pass data from a parent component to a child component. They are read-only — a child cannot modify its props. Props make components reusable with different data.

REACT
function Greeting(props) {
  return <h2>Hello, {props.name}!</h2>;
}

function App() {
  return (
    <div>
      <Greeting name="Ali" />
      <Greeting name="Sara" />
      <Greeting name="Tom" />
    </div>
  );
}
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed React!

You finished all 10 lessons and quizzes. You now know the basics of React.