What are props in React?

Props (short for properties) are data passed from a parent component to a child component. They allow components to communicate with each other and enable reusability by making components customizable.

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