会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
闰土的土
博客园
首页
新随笔
联系
订阅
管理
2018年10月22日
React-redux mapStateToProps,mapDispatchToProps 如何使用
摘要: 使用 react-redux 首先在最外层容器中,把所有内容包裹在 Provider 组件中,将之前创建的 store 作为 prop 传给 Provider 。 const App = () => { return ( <Provider store={store}> <Comp/> </Prov
阅读全文
posted @ 2018-10-22 17:28 闰土的土
阅读(4853)
评论(0)
推荐(0)
编辑
公告