Click in order · Vue.js course · Module 6: Components
Composable declaration with onMounted
Arrange a composable with onMounted:
Items to click
- return { data } }
- onMounted(() => { data.value = 'loaded' })
- const data = ref(null)
- import { ref, onMounted } from 'vue'
- export function useData() {
You can check the correct answer by solving this task in the CodeWorlds game.