摘要:
Mounting/组件挂载相关: componentWillMount componentDidMount Updating/组件更新相关: componentWillReceiveProps shouldComponentUpdate componentWillUpdate componentDi 阅读全文
摘要:
React.createClass 参数:config(object) 创建一个ReactClass(组件类),参数是一个对象且必须带有render属性方法,该方法必须返回一个封闭的容器(容器内可以由其他不限结构的容器)或null/false(表示啥都不渲染): 注意:在该方法里面,所有的this都 阅读全文