Fakultas Ilmu Komputer UI

store.tsx 281 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
import { combineReducers, createStore } from "redux";
import userReducer from "./user/reducer";

const rootReducer = combineReducers({
  user: userReducer,
});

const store = createStore(rootReducer);

export type RootState = ReturnType<typeof rootReducer>;

export default store;