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:

  1. Import createApp from 'vue'
  2. Import App from './App.vue'
  3. Call createApp(App)
  4. Mount with .mount('#app')