tezvyn:

Vue: The Progressive Framework Philosophy

AI-drafted, machine-checkedSource: vuejs.orgbeginner

Vue's progressive philosophy means you can use as little or as much of it as you need. Use it for a single interactive widget, or scale it up to a full SPA with official libraries.

WHY IT EXISTS Web development isn't one-size-fits-all. Some projects need a massive, structured framework from the start, while others just need to make a small part of a page dynamic. The "all or nothing" approach of many frameworks creates friction, forcing developers to adopt a heavy tool for a simple job. Vue was designed to bridge this gap.

THE MENTAL MODEL Think of Vue as a toolkit that grows with you. You can start by using just one tool—the core library—to add interactivity to a static HTML page, much like you would with jQuery. As your needs grow, you can reach back into the toolkit for more powerful, specialized tools like a router (Vue Router) or a state manager (Pinia) to build a full-blown application. You only carry the weight you need.

HOW IT WORKS At its core, Vue is a library for rendering user interfaces that builds on standard HTML, CSS, and JavaScript. You can include it with a single script tag and start using it on any part of your page. This is the "library" end of the spectrum. For more complex applications, Vue provides an official ecosystem of libraries that are designed to work together seamlessly. By adding these, you "progress" from using Vue as a library to using it as a full framework.

WHEN TO USE IT Use Vue when you value flexibility. It's ideal for teams that work on a variety of projects, from enhancing existing server-rendered pages (like a WordPress or Rails app) to building large-scale Single Page Applications (SPAs). It's also great for projects that you expect to start small but might grow in complexity over time.

WHEN NOT TO USE IT If your team requires a highly opinionated, "batteries-included" framework where all major decisions are made for you from the start, a framework like Angular might be a better fit. The progressive approach requires you to make conscious decisions about which parts of the ecosystem to adopt, which can be a hurdle for teams preferring a single, prescribed path.

ONE CANONICAL EXAMPLE A common use case is enhancing an e-commerce site built with a traditional backend. You could use Vue to power just the shopping cart component. It would be a self-contained, reactive widget on an otherwise static page. If the site later evolves into a full SPA, you can expand Vue's role, add Vue Router to handle product pages, and use Pinia to manage the cart state across the entire application.

Read the original → vuejs.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.