QamoosTech
FrontendBeginner

Component

Pronunciationkum-POH-nent

Definition

A reusable piece of user interface, such as a button, a card, or a whole page section, built with its own code and style.

Where you hear it

React, Vue, Angular, and design systems.

Examples

  • Let's turn the product card into a reusable component.
  • This component is too big. Split it into smaller ones.
  • The header component appears on every page, so we build it once.

Common mistake

Building huge components that do everything. Small focused components are easier to test and reuse.

Don't confuse with

Component is often mixed up with template, but a template defines the layout and structure, whereas a component includes both the logic and the UI elements.

Say it at work

  • In a meeting or chatCan we extract this part of the form into a separate component so we can reuse it later?
  • In an email or ticketI updated the navigation component to support the new responsive layout requirements.