Install any skill in seconds. Free to start, no credit card required.
Get Started Free →toddkasper/react
Building and reviewing React applications — components and JSX, hooks (useState/useReducer/useEffect/useRef/useContext, custom hooks), the rules of hooks, state and data flow, rendering and memoization, concurrent features, accessibility, and testing with React Testing Library.
Passed 17 of 23 test cases with the skill, and 16 of 23 without it.
2 fixed15 passed either way5 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
In our dashboard, typing into a search input filters a huge list of catalog items in real time, making the text cursor lag noticeably. We need to optimize this experience while keeping the search field strictly controlled. Please supply a refactored React component snippet showing how to maintain instant input responsiveness during heavy list recalculations, and provide a short breakdown of why this hook structure is appropriate.
| Checked | Without skill | With skill |
|---|---|---|
| The response uses useDeferredValue for the deferred search term. | Passed | Passed |
| The response wraps the consumer list component in React.memo. | Missed | Passed |
| The response refrains from wrapping the controlled input state updater in useTransition. | Passed | Passed |
The instructions your model reads when the skill loads.
No vendor certification exists for React. This playbook encodes the working competence applied when building, reviewing, or debugging a React application — anchored entirely on official React documentation (react.dev) and broadly accepted community best practices. Anchor all claims to react.dev; verify against it before acting.
Scope of this skill: React itself — components, hooks, state, rendering, data-fetching patterns, accessibility, and testing. Framework concerns (Next.js App Router, Server Components, Expo) are deferred to the nextjs and react-native sibling skills.
Load this skill when… writing or reviewing React components, hooks, or state architecture; debugging re-renders, stale closures, or effect dependencies; auditing accessibility (ARIA, focus management); writing or fixing React Testing Library tests. Not this skill: Next.js App Router, Server/Client Components, Server Actions → see
nextjs; React Native / Expo mobile apps → seereact-native.
Study resources and data-fetching library links live in references/study-resources.md.
Verify steps assume nothing about your tooling — use your project's own scripts and the language toolchain (
tsc,node, the test runner, the package manager), in that order of preference.
[volatile — verify live] marks apply to: React Compiler availability and defaults (production-ready late 2025 — check the project's babel-plugin-react-compiler version before assuming it is active); compiler lint rules — eslint-plugin-react-compiler is superseded by eslint-plugin-react-hooks v6, which folds in the compiler rules (React 19.2, Oct 2025); useActionState and useOptimistic (React 19+ only); React 18 batching behavior in non-React-managed event handlers (verify with React 18+); TanStack Query and SWR API surface (major-version breaking changes — always check installed version). Check react in package.json — React 18 and 19 differ on form actions, optimistic updates, and compiler support.StrictMode from a production app; major data-fetching library upgrades (TanStack Query v4→v5 API changes); production deploys.[volatile — verify live] or [opinion — house style].Violating either rule makes hook call order unstable across renders; React will corrupt state. ESLint's eslint-plugin-react-hooks (v6+ in React 19.2 projects, which folds in the former eslint-plugin-react-compiler rules) enforces both rules automatically — enable and trust it. See react.dev/blog/2025/10/01/react-19-2.
test cases passed, vs 16 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.