Click in order · Vue.js course · Module 6: Components

Import and use a composable

Arrange the steps from creating to using a composable:

Items to click

  • Define reactive data (ref/reactive)
  • Create a composable file (useMarsData.js)
  • Import and call in a component
  • Return data (return { data })

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