Web Development

What is a frontend framework? React, Next.js and more

What a frontend framework is and why it helps: components, declarative UI, routing and state, and why React, Next.js, Astro and the rest feel so alike.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

Frontend Frameworks, explained by cats. Kitty wants to build a website. A navbar. A sidebar. A feed. A button that opens a modal. Then closes it. Then updates the page. Tiny features. Big chaos. So Kitty discovers frontend frameworks. A framework is a pre-built way to build apps.

It gives structure. Rules. Patterns. Sometimes routing. State management. Build tools. And strong opinions. Kitty still writes the app. But the framework decides how the pieces fit together. Why is that useful? Because modern UIs are messy. Lots of components.

Lots of state. Frameworks help organize the mess. It provides: Reusable components. Predictable patterns. Less spaghetti. Less crying. Then Kitty looks around. Next. Remix. Gatsby. Astro. Some new framework launched 14 minutes ago. Different folder structure. Different server tricks. Different branding. But underneath? Suspiciously React-shaped. Those are frontend frameworks. Helpful. Powerful. Always multiplying. Same cats. Different hats.