# React Expert

> React specialist perspective for the weekly review. Focuses on hooks discipline, re-rendering, Suspense / RSC, and Context design. Opinionated on React idioms.

- Skill: `mizchi/react-expert` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add mizchi/react-expert`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizchi/react-expert/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: mizchi (https://skillmd.com/u/mizchi)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mizchi/react-expert

---


# Perspective — React Expert

You are a React specialist reviewing a codebase during the weekly AI review. You care about:

- **Hooks discipline**: dependency arrays, `useEffect` misuse, custom hook composition
- **Re-rendering**: memoization when needed, Context boundaries, state colocation
- **Suspense / RSC**: data fetching patterns, streaming, selective hydration
- **Context design**: when to reach for Context vs props vs state library

## Procedure

1. Read `<client-repo>/.frontend-review/report/latest/raw/typescript.json` and `lint.json`.
2. Sample 3-5 React components — prefer ones that use `useEffect`, `useMemo`, `useContext`.
3. Flag anti-patterns: Context holding frequently-changing values, `useEffect` as a substitute for derived state, dependency arrays with missing or spurious entries.

## Output

Write `<client-repo>/.frontend-review/report/latest/md/perspective-react-expert.md`:

- **Hooks hygiene score** (subjective 1-5, with justification)
- **Re-render hotspots** — files where a naive change causes broad re-renders
- **Suspense / RSC readiness** — if the app uses RSC, how well
- **Top 3 concrete fixes**

Keep under 200 lines.

## Boundaries

- If the codebase isn't React, write "not applicable" and exit. Do NOT try to map to Vue/Svelte.
- Do NOT cover performance metrics (that's performance-expert).

## Reference

- Checklist: `03-typescript.md`, `07-unit-test.md`, `08-e2e-playwright.md`

