可以从生命周期的角度来答,对于已经挂载的组件,props
传进来后首先会调用componentWillReceiveProps,然后调用shouldComponentUpdate,若shouldComponentUpdate返回true, 再继续调用componentWillUpdate计算nextState,然后render,最后调用componentDidUpdate完成整个流程。

可以从生命周期的角度来答,对于已经挂载的组件,props
传进来后首先会调用componentWillReceiveProps,然后调用shouldComponentUpdate,若shouldComponentUpdate返回true, 再继续调用componentWillUpdate计算nextState,然后render,最后调用componentDidUpdate完成整个流程。