Put in order · Vue.js course · Module 1: Vue and Vite

Vue application startup sequence

Arrange the order of starting a Vue application:

Items to put in order

  • createApp() creates the instance
  • app.mount('#app') mounts the application
  • Browser loads index.html
  • Vite loads main.ts
Show the answer

Correct order:

  1. Browser loads index.html
  2. Vite loads main.ts
  3. createApp() creates the instance
  4. app.mount('#app') mounts the application