12 lines
347 B
JavaScript
12 lines
347 B
JavaScript
import { combineReducers, configureStore } from "@reduxjs/toolkit";
|
|
import calcReducer from "./reducers/calcSlice";
|
|
import calculationReducer from './reducers/calculationSlice'
|
|
|
|
const rootReducer = combineReducers({ calcReducer, calculationReducer});
|
|
|
|
export const setupStore = () => {
|
|
return configureStore({
|
|
reducer: rootReducer,
|
|
});
|
|
};
|