React生命週期

1.Mounted: react components被 render解析,生成對應的DOM節點,並被插入瀏覽器的DOM結構的一個過程,頁面呈現出來以後,已經mounted了 2.Updated: 一個mounted的react components被重新render的過程,並不是相應的DOM結構一定會改變,react會把這個components的當前state和最近一次的state進行對比,只有
相關文章
相關標籤/搜索