Question · Vue.js course · Module 6: Components

The onMounted hook

When is onMounted called?

Answer options

  • Before the component is created
  • After the component is mounted in the DOM
  • On every data update
  • Before the component is removed from the DOM

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