react webapp 开发小结

1.监听props的方法

componentWillReceiveProps(nextProps) {
  //  
}

2.监听state的方法

3.props 传递的方法

<AlarmList {...this.props} />

.

posted @ 2018-07-15 19:32  每天都要进步一点点  阅读(191)  评论(0)    收藏  举报