[react] react15、react16生命週期對比

一、react15生命週期   react15生命週期 初始狀態   點擊「掛載Child Component」按鈕後   從右邊的console中可以看出Child組件首次掛載的時候,依次觸發了Child組件的constructor, componentWillMount, render, componentDidMount。 3.點擊「修改Child組件的props.count」按鈕後 sho
相關文章
相關標籤/搜索