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

// Child function Greeting(props) { return

Hello, {props.name}

; }

Props are read-only (immutable).