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

Vue component hierarchy

Arrange the component hierarchy from the highest to the lowest level:

Items to put in order

  • View/Page components (page views)
  • Layout components (header, sidebar)
  • UI components (buttons, cards)
  • App.vue (root component)
Show the answer

Correct order:

  1. App.vue (root component)
  2. Layout components (header, sidebar)
  3. View/Page components (page views)
  4. UI components (buttons, cards)