11 lines
283 B
TypeScript
11 lines
283 B
TypeScript
import { configureStore } from "@reduxjs/toolkit";
|
|
import rootReducer from "./rootReducer";
|
|
|
|
const store = configureStore({
|
|
reducer: rootReducer,
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|
|
export default store;
|