//reducer 그룹화 하기 위해서
import { combineReducers } from "redux";
//slice 연동
import boardReducer from "../redux/slices/boardSlice";
import loginReducer from "../redux/slices/loginSlice";
import boardItemSlice from "../redux/slices/boardItemSlice";
const rootReducer = combineReducers({
board: boardReducer,
boardItemMap: boardItemReducer,
login: loginReducer,
});
export type RootState = ReturnType<typeof rootReducer>;
export default rootReducer;
Reducer action을 실제로 처리 하는 함수
export type RootState = ReturnType;