Put in order · Vue.js course · Module 6: Components

Lifecycle hooks description

Arrange the hooks in the order they are called when mounting a component:

Items to put in order

  • onBeforeMount (before rendering to DOM)
  • setup() (Composition API initialization)
  • onMounted (component in DOM)

You can check the correct answer by solving this task in the CodeWorlds game.