Back to course

Props: Passing Data to Components

React JS 0 to Hero: The Complete Guide

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).