最佳答案
当试图运行我的 React 应用程序时,我收到了以下错误:
./src/Component/App/App.js
试图导入错误: “ comineReducers”
未从“ . ./. ./store/reducers/”导出。
我是这样输出 combineReducers
的:
import { combineReducers } from 'redux';
import userReducers from './userReducers';
import articleReducers from './articleReducers';
export default combineReducers({
userReducers,
articleReducers
});
以下是我在 App.js
中导入的方法:
import { combineReducers } from '../../store/reducers';
我输出 combineReducers
的方式有什么不正确的地方吗?