I'm confused about the difference between the CLI version of Vue.js and the normal version where you use a Vue istance.
On the initial build, the App.js file looks something like this:
import { createApp } from 'vue'
import { App } from './App.vue'
createApp(App).mount('#app')
and the app works fine.
But if I try to change it slightly and use:
import { Vue } from 'vue'
import { App } from './App.vue'
Vue.createApp(App).mount('#app')
all I get is a blank page.
I've been wanting to add a prototype to the Vue instance to access a global variable, but I don't see how if you can't use the Vue class normally.
What's the difference in functionality on the vue-cli when using Vue.createApp
and createApp
?