Codex skills for React

React skills cover React 19 Actions, Server Components, render profiling, TanStack Query, routing, forms, Testing Library and React Native with Expo. Codex profiles a named slow interaction in a production build before adding memo, tests components through roles and labels, and checks the installed React version before rewriting forwardRef as a plain ref prop.

34 more React skills

Every React skill in one command

Installs these 37 into ~/.agents/skills/. Add --project after -- to install into the current repository instead.

The installer is a 104-line POSIX shell script. It fetches the skills you name from codexskills.dev and unpacks each into its own folder in your skills directory. No sudo, no telemetry, and every skill page shows the full SKILL.md first. Read install.sh

curl -fsSL codexskills.dev/install.sh | sh -s -- react-19-patterns react-server-components react-performance react-three-fiber react-router-v7 react-hook-form-zod motion-animations typescript-react-types react-native-expo react-native-performance react-testing-library react-render-profiling tanstack-query tanstack-router tanstack-start storybook-stories webpack-to-vite zustand-state redux-toolkit shadcn-ui radix-ui frontend-i18n frontend-error-handling trpc-apis expo-router ai-chat-interface xss-prevention mobile-app-security visual-regression-testing api-mocking-msw mobile-e2e-testing code-splitting design-systems algolia-search viem-wagmi nextjs-app-router view-transitions

React FAQ

Is there a Codex skill for React 19 Actions and useActionState?

React 19 Patterns rewrites mutations as Actions with useActionState, useFormStatus and useOptimistic instead of hand-rolled isSubmitting flags, and converts forwardRef to ref as a plain prop. It checks the installed React version first, keeps use() away from promises created during render, and includes an upgrade path from React 18 with codemods.

How does Codex fix a slow React component without wrapping everything in memo?

React Performance starts from one named slow interaction, profiles it in a production build and classifies the cause before editing. It prefers structural fixes such as state colocation, split contexts and virtualization, then adopts the React Compiler incrementally. React Render Profiling reads the React DevTools commit and ranked charts and proves each fix with a second recording of the same interaction.

Do these skills cover React Server Components and the 'use client' boundary?

React Server Components decides server or client per component from a needs table and splits mixed components so only the interactive part ships JavaScript. It fixes the 'functions cannot be passed' error at its cause, maps ORM rows to plain DTOs, dedupes loaders with React.cache and adds server-only guards so credentials never reach the browser payload.

How do I install all 37 React skills at once?

Pass every name to the installer in one command: curl -fsSL https://codexskills.dev/install.sh | sh -s -- react-19-patterns react-server-components react-performance react-three-fiber react-router-v7 react-hook-form-zod motion-animations typescript-react-types react-native-expo react-native-performance react-testing-library react-render-profiling tanstack-query tanstack-router tanstack-start storybook-stories webpack-to-vite zustand-state redux-toolkit shadcn-ui radix-ui frontend-i18n frontend-error-handling trpc-apis expo-router ai-chat-interface xss-prevention mobile-app-security visual-regression-testing api-mocking-msw mobile-e2e-testing code-splitting design-systems algolia-search viem-wagmi nextjs-app-router view-transitions. Add --project right after -- to put them in the current repository's .agents/skills/ so your team gets them too.

Which React skill should I try first?

React 19 Patterns is the closest fit for most React work. Mention it with $react-19-patterns in a prompt to load it on purpose; after that, Codex picks it up on its own whenever a task matches.

esc