Click in order · Vue.js course · Module 9: Composables & VueUse

script setup with Composables

Arrange script setup integrating composables:

Items to click

  • onMounted(() => fetchExperiments())
  • import { onMounted } from 'vue'
  • </script>
  • const { experiments, fetchExperiments } = useExperiments()
  • <script setup>

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