Mastermindzh 3cb1759648 - Updated to React 18
- Updated for public release
  - Git was reset for privacy reasons
2022-06-27 16:41:03 +02:00

18 lines
453 B
TypeScript

import { configureStore, ThunkAction, Action } from "@reduxjs/toolkit";
import counterReducer from "../features/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>
>;