Vue Instance

To start a Vue.js project, you need to create a new Vue instance. The Vue instance manages the lifecycle of the application and connects data to the template.

Snippet:

const app = Vue.createApp({ data() { return { message: "Hello Vue!" }; } }).mount("#app");

Example:

<div id="app">{{ message }}</div>