0Pricing
React Academy · Lesson

Props & Composition

Passing props, default props via destructuring, composition vs inheritance, children/slots patterns, and simple presentational components.

Overview

Goal: Pass data with props, set defaults, and build UIs by composing small components.

  • Props carry data into components.
  • Defaults via simple destructuring.
  • Composition & children slots.

Passing props

Props are read-only inputs. A parent renders a child and supplies values; the child reads them from its parameters.

  • Do not mutate props.
  • Re-render happens when parents change state/props.

All lessons in this course

  1. Passing Props & Composition Patterns
  2. Props & Composition
  3. Reusable Presentational Components
← Back to React Academy