how to create an app with vue.js code example
Example 1: create vue project
npm install -g @vue/cli
//then
vue create hello-world
Example 2: how use vue createApp
const app = Vue.createApp({
data() {
return { count: 4 }
}
})
const vm = app.mount('#app')
console.log(vm.count) // => 4