Introduction
A component is a small, reusable piece of a user interface. It helps build apps by breaking the screen into simple parts.
When you want to show a button that can be used many times in different places.
When you need a form input that behaves the same way everywhere.
When you want to split a big page into smaller, easy-to-manage sections.
When you want to reuse a header or footer on many pages.
When you want to update only one part of the screen without reloading everything.