Back to React

Components & Props

Designing reusable components and passing data via props.

Components & Props

Components are the building blocks of React UIs. Use props to pass immutable data from parent to child components, and keep components focused and reusable.

Tips

  • Favor small, focused components
  • Use prop-types or TypeScript for prop validation
  • Prefer composition over inheritance