tech-react
Installation
SKILL.md
Core Challenges
React patterns evolve with each major version. React 19 introduced the use() hook for promise handling and formalized Server Component boundaries with clearer client/server semantics. Common pitfalls include:
- Hook ordering violations: Conditionally calling hooks breaks React's tracking system
- Unnecessary memoization: useMemo/useCallback/React.memo add overhead without measurement
- Oversized components: Mixing Server and Client logic prevents streaming optimization
- Missing Suspense boundaries: Async data without Suspense blocks entire render
- Stale closures: Effects with incorrect dependency arrays or missing cleanup
- Key misuse: Index keys cause state to attach to wrong list items after reorder
React 19 improves these patterns: use() hook for consuming promises, Server Components for data fetching without extra requests, and useTransition() for non-blocking updates.