react
Aburey-forget
这个作者很懒,什么都没留下…
展开
-
Redux-thunk中间件的配置
首先安装 redux-thunk npm install --save redux-thunk 在store文件夹下index.js中 import { createStore, applyMiddleware, compose } from "redux"; import reducer from "./reducer"; import thunk from "redux-thunk...原创 2019-09-23 09:35:40 · 173 阅读 · 0 评论 -
redux 的使用
目录结构: 首先安装:redux 和 redux-thunk npm install --save redux npm install --save redux-thunk 在store下的index.js中引入并使用 import { createStore, applyMiddleware, compose } from "redux"; import reducer fr...原创 2019-09-23 10:20:59 · 124 阅读 · 0 评论