Favicon of React + TypeScript Project Configuration

React + TypeScript Project Configuration

Complete CLAUDE.md configuration for React + TypeScript projects with best practices for component architecture, state management, testing patterns, and deployment workflows.

๐Ÿ“‹ Project Configuration - React TypeScript

๐Ÿšจ CRITICAL RULES

  • Always use TypeScript strict mode
  • Components must be functional with hooks
  • Follow atomic design principles
  • Never commit without running tests
  • Use ESLint and Prettier for code formatting

๐ŸŽฏ PROJECT CONTEXT

  • Project Type: React SPA with TypeScript
  • Architecture: Component-based with context for state
  • Build Tool: Vite
  • Testing: Vitest + React Testing Library
  • Routing: React Router v6

๐Ÿ”ง DEVELOPMENT PATTERNS

Component Structure

  • Use functional components with hooks
  • Implement proper TypeScript types for props
  • Follow single responsibility principle
  • Keep components small and focused

State Management

  • Use React hooks (useState, useReducer) for local state
  • Use Context API for shared state
  • Consider Zustand for complex state

Error Handling

  • Implement error boundaries
  • Use try-catch for async operations
  • Provide user-friendly error messages

๐Ÿงช TESTING STRATEGIES

  • Write tests for all business logic
  • Test user interactions, not implementation
  • Aim for >80% code coverage
  • Use MSW for API mocking

๐Ÿš€ DEPLOYMENT

  • Build: npm run build
  • Preview: npm run preview
  • Deploy to Vercel/Netlify

๐Ÿ“ฆ Tech Stack

  • React 18+
  • TypeScript 5+
  • Vite
  • Vitest
  • React Router
  • Tailwind CSS
Categories:

Share:

Ad
Favicon

ย 

ย ย 
ย 

Similar to React + TypeScript Project Configuration

Favicon

ย 

ย ย 
ย ย 
Favicon

ย 

ย ย 
ย ย 
Favicon

ย 

ย ย 
ย ย