lifecircle

1.mount 2.update 3.unmont

 

constructor

 

componentWillMount (multiple calls, involving the Diff algorithm fiber)

render

componentDidMount (ajax entry)

 

compontentWillReceiveProps

shouldCompntentUpdate (optimization)

compontentWillUpdate

render

compontentDidUpdate

 

compontentWillUnMount

compontentDidUnMount

 

 

https://segmentfault.com/a/1190000005990091

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326210837&siteId=291194637