'why can't I export 'combineReducers' (imported as 'combineReducers') was not found in 'react-redux'
Here is my main js code and why combine all reducer cartredux\src\redux\reducers\main.js
import {combineReducers} from "react-redux";
import { cartreducer } from "./reducer";
const rootred = combineReducers({
cartreducer
});
export default rootred;
Solution 1:[1]
As a comment pointed out: the combineReducers function is part of either the @reduxjs/toolkit or redux packages, because it's about the non-UI portion of the logic. It's not part of the react-redux package, which is specifically about React UI integration with Redux.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | markerikson |
