Title here
Summary here
The Haddock frontend is built with React and follows a feature-first architecture pattern, emphasizing modularity and reusability.
src/
├── app/ # App initialization
├── components/ # Shared components
├── features/ # Feature modules
│ ├── auth/
│ ├── projects/
│ └── vms/
├── hooks/ # Custom React hooks
├── lib/ # Utilities and helpers
├── pages/ # Route components
├── services/ # API services
└── types/ # TypeScript types
features/projects/
├── api/ # API integration
├── components/ # Feature components
├── hooks/ # Feature hooks
├── stores/ # State management
└── types/ # Feature types
interface AppState {
theme: 'light' | 'dark';
setTheme: (theme: 'light' | 'dark') => void;
}
const { data: projects } = useQuery({
queryKey: ['projects'],
queryFn: fetchProjects
});