![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
redux
BBbila
前端小鸟,欢迎交流学习
展开
-
【21】前端实习:redux入门学习(核心概念)
【安装依赖】 npm install --save redux npm install --save react-redux npm install --save-dev redux-devtools 【核心概念】 state被存放在哪里? 应用中所有的 state 都以一个对象树的形式储存在一个单一的store中。 怎么改变state(state里面的数据)? 不...原创 2019-09-02 16:51:06 · 109 阅读 · 0 评论 -
【react-router4.0+】版本导入browserHistory失效('BrowserHistory' is not exported from 'react-router')
当在js文件中引用: import {BrowserHistory} from 'react-router' 报错: ./src/pages/store.js Attempted import error: 'BrowserHistory' is not exported from 'react-router'. react-router4.0官方文档里已经废弃了:Brow...原创 2019-09-03 16:49:26 · 10945 阅读 · 0 评论