Using Props
Props (properties) allow you to pass data from a parent component to a child component.
jsx // Parent <Greeting name="Alice" />
// Child function Greeting(props) { return <h1>Hello, {props.name}</h1>; }
Props are read-only (immutable).
React JS 0 to Hero: The Complete Guide
Props (properties) allow you to pass data from a parent component to a child component.
jsx // Parent <Greeting name="Alice" />
// Child function Greeting(props) { return <h1>Hello, {props.name}</h1>; }
Props are read-only (immutable).