StudE-Frontend/src/features/redux/Store/Store.tsx

15 lines
388 B
TypeScript
Raw Normal View History

2023-07-03 21:22:31 +08:00
import { configureStore } from "@reduxjs/toolkit";
import AuthReducer from "../slices/AuthSlice/AuthSlice";
const store = configureStore({
reducer: {
auth: AuthReducer,
},
});
export default store;
// Infer the `RootState` and `AppDispatch` types from the store itself
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;