Created slice, store, and hooks. Started adding them into the calender component.

This commit is contained in:
Lucid Kobold
2022-06-12 20:52:42 -05:00
parent 4208134553
commit 1f596f8f1c
7 changed files with 222 additions and 6 deletions

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

@@ -0,0 +1,11 @@
import { configureStore } from "@reduxjs/toolkit";
import calenderReducer from "../features/calender/calender";
export const store = configureStore({
reducer: {
calender: calenderReducer
}
});
export type AppDispatch = typeof store.dispatch;
export type RootState = ReturnType<typeof store.getState>;