Frontend
The part of an app people see and interact with in a browser or on a device.
The frontend is the part of an app people see and interact with: the pages, the components, and the client-side state in a browser or on a device. It includes layout, accessibility, performance, and the way data from the backend is shown and updated. A reusable component catalog, a design system, and a clear state model are usually what keep a frontend from turning into a pile of special cases.
When you design a component, decide what it owns, what it emits, and how it looks in empty, loading, error, and overflowing states. Those four states are where most interfaces break. Prefer composition over deep configuration, and keep visual decisions in a styling system so a later restyle does not rewrite logic.
Watch for layout shift, large client bundles, and keyboard or screen-reader paths that only work with a mouse. If an agent is generating UI, give it the catalog and the constraints, not a blank canvas. Generated markup still has to meet the same bar as handwritten markup.
A frontend that is easy to extend is usually a small set of primitives plus a few patterns, not a new widget for every screen. Start there, and add a component only when you have used the same pattern twice.