SyntaxStudy
Sign Up
Vue.js Component Lifecycle Hooks Overview
Vue.js Beginner 1 min read

Component Lifecycle Hooks Overview

Every Vue component instance goes through a series of lifecycle stages: creation, mounting, updating, and unmounting. At each stage Vue calls corresponding lifecycle hooks, giving you the opportunity to run custom code. In the Composition API these hooks are imported functions (`onMounted`, `onUpdated`, `onUnmounted`, etc.) called inside `setup()` or `