Components

Beginner·15 min read·Lesson 2 of 4·Not Started

Components are the building blocks of any React application. They are reusable, self-contained pieces of UI that can accept input (props) and return React elements.

Functional Components

Modern React uses functional components — plain JavaScript functions that accept props and return JSX. With hooks, functional components can manage state and side effects.

Component Composition

Composition is the practice of combining smaller components to build complex UIs. React's composition model is powerful and flexible, using the children prop and render props.