0
我越來越而且我不理解的createStor錯誤爲什麼終極版咚的反應本地
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import thunk from "redux-thunk"
import promise from "redux-promise-middleware"
import * as reducers from './reducers';
const middleware = applyMiddleware(promise(), thunk);
export default createStore(reducers, middleware);
以上是我的代碼,我得到的錯誤在該行
const middleware = applyMiddleware(promise(), thunk);
的錯誤預期減速是一個函數。 我使用本機作出反應0.37終極版,終極版,形實轉換和終極版,承諾中間件的最新版本。 該減速器是combineReducers的結果。
在此先感謝。
你可以發佈減速器代碼? –