Vue.js is providing lifecycle hooks to manage/manipulate a component's state at specific time. It's a basic building block of vue.js, as developers need it at each and every stage of implementing vue.js app.
Have you ever been through the lifecycle hooks in detail?
If no then learn vue lifecycle hook in-depth with a comparison to "Bobs morning routine" at Vue.js lifecycle hooks with real-time example.
You can read full article here https://blog.canopas.com/vue-3-lifecycle-hooks-with-real-time-example-1b772b89e085