Question · Vue.js course · Module 9: Composables & VueUse

Dependency Injection in Composables

What is provide/inject used for in composables?

Answer options

  • Only for importing CSS files
  • Providing shared state without prop drilling
  • Automatically creating components
  • Compiling TypeScript code

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