Problem Statement
What are props in React?
Explanation
Props (short for properties) are inputs passed from parent to child components. They are read-only and used to send data or event handlers into components.
Code Solution
SolutionRead Only
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}