码迷,mamicode.com
首页 > 移动开发 > 详细

react webapp 开发小结

时间:2018-07-15 21:23:03      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:state   this   com   web   one   script   list   webapp   class   

1.监听props的方法

componentWillReceiveProps(nextProps) {
  //  
}

2.监听state的方法

3.props 传递的方法

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

.

react webapp 开发小结

标签:state   this   com   web   one   script   list   webapp   class   

原文地址:https://www.cnblogs.com/crazycode2/p/9312179.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!