2016年10月27日

React Props

摘要: 1.getDefaultProps:设置默认propties 2.返回Object 3.设置defaultprops,在渲染时,render中的class可以不需要props属性,如有属性则覆盖掉默认属性 阅读全文

posted @ 2016-10-27 15:10 carlyin 阅读(182) 评论(0) 推荐(0)

React State

摘要: 1.getInitialState:设置初始State,返回Object 2.this.setState():改变State 3.都在creatClass内创建类 阅读全文

posted @ 2016-10-27 14:58 carlyin 阅读(120) 评论(0) 推荐(0)

React 组件

摘要: 阅读全文

posted @ 2016-10-27 14:51 carlyin 阅读(75) 评论(0) 推荐(0)

导航