componentWillUumount调用的两种形式:
1.组件被移除(众所周知- this.state.show ? <A /> : null
2.组件中设置了key,父组件在render的过程中发现key值不一致
评论