React(6) life cycle (new)

Why add UNSAFE to the old life cycle _React official documentation below

Update on Asynchronous Rendering – React Blog

 The new version removes the above three and adds

getDerivedStateFromProps(), getSnapshotBeforeUpdate() life cycle usage needs to be static

 

 

Guess you like

Origin blog.csdn.net/m0_65634497/article/details/129530769