Put in order · Vue.js course · Module 1: Vue and Vite
Advanced: Script order in main.js
Arrange the order of operations in the main.js file:
Items to put in order
- Mount with .mount('#app')
- Import App from './App.vue'
- Import createApp from 'vue'
- Call createApp(App)
Show the answer
Correct order:
- Import createApp from 'vue'
- Import App from './App.vue'
- Call createApp(App)
- Mount with .mount('#app')