随笔分类 -  React

Middleware
摘要:redux中间件就是对dispatch进行处理,dispatch接收action creator后先进行处理后再讲action传给reducer 使用方法: 执行过程: 编写middleware: 阅读全文

posted @ 2017-07-12 14:12 高石石石 阅读(150) 评论(0) 推荐(0)

React.Children
摘要:一直分不清React.Children与this.props.children是什么关系。其实很简单,this.props.children是子组件的集合,相当于把子组件当做组件的属性传入。 this.props.children有三种情况: 1.没有子组件时,数据类型为undefined 2.只有 阅读全文

posted @ 2017-07-11 16:52 高石石石 阅读(197) 评论(0) 推荐(0)

导航