mirror of
https://github.com/LucasVbr/todo-list.git
synced 2026-05-13 17:22:04 +00:00
12 lines
294 B
TypeScript
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 |