Frontend Architecture
TalentG’s frontend is built with modern React patterns using Next.js 14 App Router, providing a scalable and maintainable codebase.Technology Stack
Core Technologies
- Next.js 14: React framework with App Router
- React 18: UI library with concurrent features
- TypeScript: Type-safe development
- TailwindCSS: Utility-first CSS framework
- RizzUI: Component library for consistent design
State Management
- Jotai: Atomic state management
- React Hook Form: Form state management
- Zod: Schema validation
- TanStack Query: Server state management
Development Tools
- ESLint: Code linting
- Prettier: Code formatting
- Husky: Git hooks
- TypeScript: Type checking
Project Structure
Component Architecture
Component Hierarchy
Component Patterns
1. Compound Components
2. Custom Hooks
3. Form Components
State Management
Jotai Atoms
Server State with TanStack Query
Styling Guidelines
TailwindCSS Configuration
Component Styling
Performance Optimization
Code Splitting
Image Optimization
Memoization
Testing Strategy
Component Testing
Integration Testing
Development Workflow
Local Development
Code Quality
- ESLint: Enforces coding standards
- Prettier: Ensures consistent formatting
- Husky: Pre-commit hooks for quality checks
- TypeScript: Compile-time type checking
Git Workflow
- Create feature branch from
main - Make changes with proper commits
- Run quality checks before push
- Create pull request for review
- Merge after approval and CI passes