react componentWillReceiveProps 使用注意

componentWillReceiveProps(nextProps) 

请务必使用 nextProps 

不要使用 this.props

1个小时的教训。。。

原文地址:https://www.cnblogs.com/zjhblogs/p/10362472.html