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

Higher-Order Component

What is a Higher-Order Component (HOC) in Vue?

Answer options

  • A function that takes a component and returns a new component with added functionality
  • A component at the top level of the tree
  • A component with more props
  • A component rendered on the server

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