Problem Statement
What is a Vue instance and how do you create it?
Explanation
The Vue instance (v2) or root app (createApp in v3) is the entry point that mounts Vue to the DOM. It manages reactive data, methods, and lifecycle hooks, and renders your root component.
Code Solution
SolutionRead Only
// Vue 2
new Vue({ el: '#app', data: { message: 'Hello!' } })
// Vue 3
import { createApp } from 'vue'
import App from './App.vue'
createApp(App).mount('#app')