complie templateinto render function
beforeMount
Unmounted
Virtual DOMre-renderedand patch
complie el`s innerHTMLas template
Mounted
NO
created
when data change
Init injections & reactivity注入依赖相关
beforeUpdate
app = Vue.createApp(options)app.mount(el)创建实例挂在实例
create app.$el and replace \"el\" with it
unmounted
beforeCreate
updated
YES
Has \"template\" options?
Init events & lifecycle初始化事件相关、生命周期相关
beforeUnmount
whenapp.unmount()is called