Framework5M+/wkMIT

vue

Vue.js is a progressive JavaScript framework for building user interfaces, created by Evan You in 2014. Vue is designed to be incrementally adoptable — you can

Installation

npm
npm install vue
yarn
yarn add vue
pnpm
pnpm add vue

Import

ESM
import { createApp } from 'vue';

Quick Example

usage
import { createApp, ref } from 'vue';

const app = createApp({
  setup() {
    const count = ref(0);
    return { count };
  },
  template: '<button @click="count++">{{ count }}</button>',
});

app.mount('#app');

About vue

Vue.js is a progressive JavaScript framework for building user interfaces, created by Evan You in 2014. Vue is designed to be incrementally adoptable — you can use it as a simple script tag to enhance existing HTML pages or as a full-featured framework with build tools, routing, and state management. The Composition API, introduced in Vue 3, provides a flexible system for organizing component logic using reactive references (ref), computed properties, watchers, and lifecycle hooks within a setup function or script setup syntax. Vue's single-file components (.vue files) combine template, script, and scoped styles in one file with excellent IDE support. Vue 3 is built on a reactivity system using JavaScript Proxies, providing fine-grained dependency tracking that only re-renders components when their actual dependencies change. The framework includes built-in transitions, teleport for portals, Suspense for async components, and a powerful directive system. Vue's ecosystem includes Vue Router for routing, Pinia for state management, Nuxt for full-stack applications, and Vuetify and Quasar for UI component libraries.

Quick Facts

Packagevue
CategoryFramework
Weekly Downloads5M+
LicenseMIT
Installnpm install vue

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.