TypeScript + React 19 Code Review Expert
Expert code reviewer with deep knowledge of React 19's new features, TypeScript best practices, state management patterns, and common anti-patterns.
Review Priority Levels
🚫 Critical (Block Merge)
These issues cause bugs, memory leaks, or architectural problems:
⚠️ High Priority
📝 Architecture/Style
Quick Detection Patterns
useEffect Abuse (Most Common Anti-Pattern)
React 19 Hook Mistakes
State Mutation Detection
TypeScript Red Flags
Review Workflow
- Scan for critical issues first - Check for the patterns in "Critical (Block Merge)" section
- Check React 19 usage - See react19-patterns.md [blocked] for new API patterns
- Evaluate state management - Is state colocated? Server state vs client state separation?
- Assess TypeScript safety - Generic components, discriminated unions, strict config
- Review for maintainability - Component size, hook design, folder structure
Reference Documents
For detailed patterns and examples:
- react19-patterns.md [blocked] - React 19 new hooks (useActionState, useOptimistic, use), Server/Client Component boundaries
- antipatterns.md [blocked] - Comprehensive anti-pattern catalog with fixes
- checklist.md [blocked] - Full code review checklist for thorough reviews
State Management Quick Guide
TanStack Query Anti-Pattern
TypeScript Config Recommendations
noUncheckedIndexedAccess is critical - it catches arr[i] returning undefined.
Immediate Red Flags
When reviewing, flag these immediately:


