Vue 3 · Reactivity
Run code after mounting
Use lifecycle hooks such as onMounted and onUnmounted.
onMounted(() => {
console.log("mounted");
});
Vue 3 · Reactivity
Use lifecycle hooks such as onMounted and onUnmounted.
onMounted(() => {
console.log("mounted");
});
Was this page helpful?