react render渲染的几种情况?

1. 首次加载

2. setState改变组件内部state。

注意: 此处是说通过setState方法改变。

3. 接受到新的props