Vue.js Framework

3.5.32 · active · verified Sat Apr 18

Vue.js is a progressive JavaScript framework for building modern user interfaces. The current stable version is 3.5.32. Vue typically releases stable patch versions every few weeks, with minor versions introducing new features and breaking changes every few months, often preceded by beta releases.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart initializes a basic Vue 3 application, demonstrates reactivity with `ref`, and shows how to mount it to an HTML element. Place `<div id="app"></div>` in your HTML to see the output.

import { createApp, ref } from 'vue';

const app = createApp({
  setup() {
    const message = ref('Hello, Vue 3!');
    const count = ref(0);

    const increment = () => {
      count.value++;
    };

    return {
      message,
      count,
      increment
    };
  },
  template: `
    <div>
      <h1>{{ message }}</h1>
      <p>Count: {{ count }}</p>
      <button @click="increment">Increment</button>
    </div>
  `
});

app.mount('#app');

view raw JSON →