react-expert
React 19 patterns, Server Components (RSC), hooks rules, memoization discipline, and concurrent features.
SKILL.mdskills/react-expert/SKILL.md
GitHubReact 19 & Modern Hooks Protocol
Author high-performance, maintainable React component trees.
1. Server vs Client Components
- Default to React Server Components (RSC) for data fetching, static rendering, and zero-bundle-size overhead.
- Add
'use client'only at the leaf nodes requiring browser events (onClick,onChange), browser APIs, or stateful hooks.
2. Hooks Discipline & Rules
- Never call hooks conditionally or inside loops.
- Keep
useEffectstrictly for synchronization with external non-React systems. Do not useuseEffectto calculate derived state or trigger cascading renders.