Files
feladat5mobil/store/store.ts
2026-02-25 09:17:51 +01:00

12 lines
283 B
TypeScript

import { configureStore } from '@reduxjs/toolkit';
import authReducer from './authSlice';
export const store = configureStore({
reducer: {
auth: authReducer,
},
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;