Reading · 8 min

Thinking in components

You are previewing a free lesson. Enrol to save progress and take quizzes.

A component is a function that returns part of the interface. Props pass data in. State holds data that changes over time and triggers a new render.