- Updated to React 18

- Updated for public release
  - Git was reset for privacy reasons
This commit is contained in:
2022-06-27 16:41:03 +02:00
commit 3cb1759648
68 changed files with 35317 additions and 0 deletions

17
src/app/store.ts Normal file
View File

@@ -0,0 +1,17 @@
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>
>;