react-performancelisted
Install: claude install-skill Lu1sDV/skillsmd
# React Performance
Baseline: **React 19.3**, **React Compiler 1.0**, eslint-plugin-react-hooks 7,
**Next.js 16** App Router. Version gates: `<Activity>` ≥ 19.2; async
transitions/Actions ≥ 19; compiler runs on React 17/18 via `target` +
`react-compiler-runtime`. Evidence: audit plus independent verification on
2026-11-07 (see [README](README.md#sources-and-decisions)). Every rule in the
references carries its source URL and conditions.
## Route by symptom
| Task | Load |
|---|---|
| Slow interaction, "why does this re-render", Profiler, state placement, context/store re-renders | [Measure and re-renders](references/measure-rerenders.md) |
| Adding or removing `memo`/`useMemo`/`useCallback`, enabling or debugging the compiler | [Memoization and compiler](references/memoization-compiler.md) |
| Bundle size, `lazy`/`next/dynamic`, barrels, long lists, `<Activity>`, third-party scripts | [Loading, bundles, lists](references/loading-bundles-lists.md) |
| Typing lag, `useTransition`/`useDeferredValue`, INP | [Transitions and INP](references/transitions-inp.md) |
Load only the relevant file.
## Workflow
1. **Measure in a production build** (dev builds can be an order of magnitude
slower). Reproduce with CPU throttling or low-end hardware. Use the React
DevTools Profiler; `<Profiler>` is off in production unless you use a
profiling build.
2. **Fix a slow render before reducing re-renders.** Then check state placement:
move state down, or pass the expensive subtree