Question · Vue.js course · Module 14: Directives & Plugins

The h() function in Vue

What is the h() function imported from 'vue' used for?

Answer options

  • For handling DOM events
  • For creating virtual DOM nodes (VNode)
  • For hashing component data
  • For hiding DOM elements

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