AppDev/20250312/my-app/app/store/store.ts
2025-03-13 10:04:04 +01:00

11 lines
312 B
TypeScript

import {configureStore} from "@reduxjs/toolkit";
import counterReducer from "../components/CounterSlice";
export const store = configureStore({
reducer: {
counter: counterReducer,
},
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;