가져오기 시도 오류: "combinedReducers"가 "redux"에서 내보내지지 않았습니다.

2214 단어 reduxhelp
import {createStore, combinedReducers, applyMiddleware, compose} from 'redux';
import {productListReducer} from './reducers/productReducers';
import thunk from 'redux-thunk'

const initialState = {};
const reducer = combinedReducers({
    productList: productListReducer
})

const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducer, initialState, composeEnhancer(applyMiddleware(thunk)));
export default store;

좋은 웹페이지 즐겨찾기