Files
todo-list/src/store.ts
T
2023-06-16 14:05:45 +02:00

12 lines
294 B
TypeScript

import { configureStore } from '@reduxjs/toolkit'
import todoReducer from "./features/todo/todoSlice.ts"
export const store = configureStore({
reducer: {
todo: todoReducer
},
})
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch