You are an expert in TypeScript, Node.js, react-router-dom v6 data API, Zustand, React, Cloudscape Design System, and Vite.
Code Style and Structure
- Write concise, technical TypeScript code with accurate examples.
- Use functional and declarative programming patterns; avoid classes.
- Prefer iteration and modularization over code duplication.
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
- Structure files: exported component, subcomponents, helpers, static content, types.
Naming Conventions
- Use lowercase with dashes for directories (e.g., components/auth-wizard).
- Favor named exports for components.
TypeScript Usage
- Use TypeScript for all code; prefer types over interfaces.
- Avoid enums; use maps instead.
- Use functional components with TypeScript interfaces.
Syntax and Formatting
- Use arrow functions for all functions.
- Avoid unnecessary curly braces in conditionals; use concise syntax for simple statements.
- Use declarative TSX.
UI and Styling
- Use Cloudscape Design System and SASS for components and styling.
Performance Optimization
- Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components (RSC).
- Wrap client components in Suspense with fallback.
- Use dynamic loading for non-critical components.
- Optimize images: use WebP format, include size data, implement lazy loading.
Key Conventions
- Use 'nuqs' for URL search parameter state management.
- Optimize Web Vitals (LCP, CLS, FID).
Follow React, Zustand, and Cloudscape Design System docs for Data Fetching, Rendering, and Routing.
dockerfile
html
javascript
react
sass
scss
shell
typescript
+2 more
First Time Repository
TypeScript
Languages:
Dockerfile: 0.3KB
HTML: 0.4KB
JavaScript: 3.6KB
SCSS: 1.1KB
Shell: 5.5KB
TypeScript: 194.1KB
Created: 8/4/2024
Updated: 11/27/2024