mirror of
https://github.com/PlayEdu/backend
synced 2025-06-21 01:42:42 +08:00
8 lines
279 B
TypeScript
8 lines
279 B
TypeScript
import { createStore, applyMiddleware } from "redux";
|
|
import userReducer from "./user/userReducer";
|
|
import thunk from "redux-thunk";
|
|
|
|
const store = createStore(userReducer, applyMiddleware(thunk));
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export default store;
|