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

Composable vs Plugin

When is it better to use a plugin instead of a composable?

Answer options

  • When the functionality is needed in a single component
  • When global configuration, directives, or components are needed
  • When the logic is synchronous
  • When the component has no template

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