What is a React component?
A self-contained, reusable piece of UI defined as a JavaScript function (or class) that returns JSX. Think of it like a Lego block — you build a page by composing many small components (Button, Card, NavBar). Each owns its own logic and styling, which makes the UI easier to maintain and test.