Add initial frontend-web setup with React, TypeScript, and Vite
- Created a new frontend-web project structure with essential files including package.json, tsconfig, and Vite configuration. - Added ESLint and Prettier configurations for code quality. - Implemented basic UI components (Button, Card, Input, Label) with Tailwind CSS for styling. - Established Redux store with user authentication slice and typed hooks for state management. - Included a sample App component demonstrating the use of UI components and Redux store. - Set up .gitignore to exclude build artifacts and dependencies.
This commit is contained in:
11
frontend-web/src/store/store.ts
Normal file
11
frontend-web/src/store/store.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {configureStore} from '@reduxjs/toolkit';
|
||||
import userReducer from './slices/userSlice';
|
||||
|
||||
export const store = configureStore({
|
||||
reducer: {
|
||||
user: userReducer
|
||||
}
|
||||
});
|
||||
|
||||
export type RootState = ReturnType<typeof store.getState>;
|
||||
export type AppDispatch = typeof store.dispatch;
|
||||
Reference in New Issue
Block a user