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 install vue
yarn add vue
pnpm add vue
Import
import { createApp } from 'vue';Quick Example
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
| Package | vue |
| Category | Framework |
| Weekly Downloads | 5M+ |
| License | MIT |
| Install | npm install vue |
Related Packages
Nuxt is the intuitive full-stack framework for building Vue.js applications with server-side renderi…
Pinia is the official state management library for Vue.js, providing a simple, type-safe, and modula…
Vuex is the legacy state management pattern and library for Vue.js applications, serving as a centra…
React is the most popular JavaScript library for building user interfaces, developed and maintained …
Svelte is a radical new approach to building user interfaces that shifts the work of the framework f…
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.