ReactJsProps

Props (short for properties) allow data to be passed from a parent component to a child component. They are read-only and help make components reusable and dynamic.

function Welcome(props) {
  return <h2>Welcome, {props.user}!</h2>;
}

export default function App() {
  return <Welcome user="Alice" />;
}