Files
react-starter-kit/src/app/store.ts
Mastermindzh 8496f5cfbe Moved examples into example directory
Moved routes to separate file
Used route constants
2022-07-26 10:32:11 +02:00

18 lines
462 B
TypeScript

import { configureStore, ThunkAction, Action } from "@reduxjs/toolkit";
import counterReducer from "../features/examples/counter/state/counterSlice";
export const store = configureStore({
reducer: {
counter: counterReducer,
},
});
export type AppDispatch = typeof store.dispatch;
export type RootState = ReturnType<typeof store.getState>;
export type AppThunk<ReturnType = void> = ThunkAction<
ReturnType,
RootState,
unknown,
Action<string>
>;