redux-saga中间件的使用

中间件是值action和store的中间 一、首先安装redux-sagaios npm install --save redux-saga 二、在store文件夹下建立saga.js文件 三、在store下的index文件中引入web import createSagaMiddleware from 'redux-saga'; import mySaga from './sagas' const
相关文章
相关标签/搜索