talira

The Progressive JavaScript Framework

open sourceMITfree

Vue.js (Vue) is a JavaScript framework for building web user interfaces, an alternative to React and Angular. It builds on standard HTML, CSS and JavaScript with a declarative, component-based model: templates extend HTML, state is reactive, and a compiler-optimized renderer updates the DOM when that state changes. Components are usually written as Single-File Components (.vue files that hold a template, script and scoped styles), with either the Options API or the Composition API. Vue is incrementally adoptable, from enhancing static HTML without a build step to single-page apps, server-side rendering and static sites; Nuxt is the full-stack framework built on it and Pinia its official state store.

Problems it solves

  • build an interactive web UI that updates the page when my data changes
  • add interactivity to an existing server-rendered HTML page without a build step
  • a frontend framework that is easier to learn than React
  • keep a component's template, logic and styles together in one file
  • reactive state in the browser without manually wiring up DOM updates
  • build a single-page app with components I can reuse across pages
  • render my JavaScript UI on the server for SEO and faster first load
  • embed small UI widgets as web components on any page
  • choose between an options-object style and a composable function style for writing components
  • a JavaScript UI framework with first-class TypeScript support

Features

  • declarative templates that extend HTML
  • reactive state with compiler-optimized rendering
  • Single-File Components (.vue files)
  • Options API and Composition API
  • server-side rendering and static site generation
  • use without a build step from a CDN
  • custom elements (Web Components) support
  • TypeScript support

Limitations

  • Vue 3 supports only browsers with native ES2016 support, so not Internet Explorer 11.1

Alternatives

The same job

These do what Vue.js does.

  1. React The library for web and native user interfaces
  2. Svelte Web development for the rest of us
  3. Angular The framework for building scalable web apps with confidence
  4. SolidJS Fine-grained reactive UI
  5. Preact Fast 3kB alternative to React with the same modern API
  6. Ember.js A framework for ambitious web developers

Compare Vue.js with the top 3