Component
Domain: Internet & Web
π― Motivation
A reusable UI piece in frontend frameworks. Encapsulates HTML, CSS, and JavaScript.
π Concrete Example
Component: <UserCard name=Alice avatar=pic.jpg />. Renders a card with Aliceβs name and photo. Reuse: <UserCard name=Bob avatar=bob.jpg />. Same component, different data.
π Analogy
A component is like a stamp - you design it once, then stamp it with different ink (data) on different papers (pages). Same design, different results. Components are reusable UI stamps.