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:
- App.vue (root component)
- Layout components (header, sidebar)
- View/Page components (page views)
- UI components (buttons, cards)