摘要: 示例代码 作用 连接React组件与 Redux store ,允许我们将 store 中的数据作为 props 绑定到组件上。 使用 Provider 内的任何一个组件(比如这里的 demo),如果需要使用 state 中的数据,就必须是「被 connect 过的」组件——使用 connect 方 阅读全文
posted @ 2017-09-11 15:35 元庆 阅读(1361) 评论(0) 推荐(1) 编辑