react-pro — Claude Code subagent: features and setup
react-pro — a React-focused subagent for building components, refactoring code, and tackling UI problems. It examines existing project patterns and includes testing in its workflow.
no license ★ 1,357 updated 2026-03-01
.claude/agents/react-pro.mdWhat react-pro does
react-pro organizes interfaces into reusable components and works with functional React components and Hooks. It can help place state, handle server-side data, and investigate performance issues such as repeated renders or long lists. Its testing guidance uses Jest and React Testing Library.
The subagent can look up library documentation with Context7 and use Magic tools to create or refine components. Its configured tools also cover reading and editing files, searching the project, and running commands. It expects changes to pass tests, linting, and type checks, so a project without a test setup will need one before that check can run.
What it helps with
- Split a UI into reusable React components
- Refactor a component to match existing project patterns
- Choose where interface state should live
- Investigate unnecessary component re-renders
- Write behavior-focused component tests
Example prompts for the agent
- Create a React component for this form, following the patterns already used in the project.
- Refactor this screen into smaller reusable components and add tests.
- Find why this list keeps rendering again and suggest a suitable fix.
How to install react-pro
Manually: put the files in place
.claude/agents/react-pro.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/react-pro.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/react-pro.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about react-pro
How do I install react-pro in Claude Code?
Add the subagent file to your project at .claude/agents/react-pro.md.
What does react-pro do?
It assists with building and refactoring React components, managing state, and investigating UI performance. Its testing guidance covers Jest and React Testing Library.
Which tools can react-pro use?
It can consult library documentation through Context7 and use Magic tools to build or refine components. Its configured tools also include file editing, project search, and command execution.