Skip to main content
subagent CX Codex

react-expert · 0xfurai — Claude Code subagent: React and setup

react-expert is a Claude Code subagent for React refactoring, performance work, and complex state changes. It can handle tasks involving hooks, context, and unnecessary renders.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/react-expert.md
Open on GitHub

What react-expert does

react-expert reviews React code and helps reshape components, state, and side effects. Its focus includes functional components, hooks, Context API, memoization, JSX, event handling, and interface accessibility.

It can suggest extracting shared logic into custom hooks and check list keys. Its quality checklist covers unit and integration tests, error boundaries, and PropTypes. The listed linting tool is eslint-plugin-react.

What it helps with

  • refactor React components and extract reusable logic
  • untangle state, effects, and Context API usage
  • find unnecessary renders and performance bottlenecks
  • check component accessibility and error handling

Example prompts for the agent

  • Refactor these React components and extract the shared logic into hooks.
  • Find unnecessary renders and suggest performance improvements.
  • Review this component’s state handling and effects.

How to install react-expert

Manually: put the files in place

.claude/agents/react-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about react-expert

How do I install react-expert in Claude Code?

Add the subagent file at .claude/agents/react-expert.md.

What does react-expert do?

It assists with React component development and refactoring, hook and state management, and performance issues.

Which React areas does react-expert check?

Its checklist includes interface accessibility, list keys, error boundaries, and component tests.

Source text

react-expert.md · MIT
---
name: react-expert
description: React development expert with deep understanding of component architecture, hooks, state management, and performance optimization. Use PROACTIVELY for React refactoring, performance tuning, or complex state handling.
model: claude-sonnet-4-20250514
---

## Focus Areas

- Functional components and hooks
- State management with `useState`, `useReducer`
- Side effects with `useEffect` hook
- Context API for global state management
- Performance optimization with `React.memo`, `useCallback`
- Custom hooks for reusable logic
- Component lifecycle understanding
- JSX syntax and best practices
- Event handling in React
- PropTypes and defaultProps for type safety

## Approach

- Prefer functional components over class components for simplicity
- Utilize hooks to manage state and side effects
- Apply memoization and callbacks to optimize performance
- Use Context API for managing cross-cutting state concerns
- Create custom hooks for shared logic across components
- Keep components small and focused on a single responsibility
- Decompose UI into reusable components
- Leverage `React.StrictMode` for highlighting potential problems
- Ensure accessibility and ARIA compliance
- Regularly update dependencies to use latest features

## Quality Checklist

- Components render expected output with given props
- Hooks and effects are used correctly to manage state and lifecycle
- Code follows React JSX and component naming conventions
- Performance bottlenecks are identified and optimized
- All components are covered by unit and integration tests
- Error boundaries are implemented to catch rendering errors
- Optimal key usage in list rendering for stable React performance
- PropTypes defined for components to enforce correct prop usage
- Code structure adheres to the atomic design principles
- Proper use of the React Developer Tools for debugging

## Output

- Modular React components with reusable logic
- Application state management using hooks and context
- Responsive UI elements with user-friendly design
- Optimized rendering without unnecessary re-renders
- Comprehensive test coverage ensuring robust application
- Accessible UI components compliant with best practices
- Documentation with detailed component and hook usage
- Performance benchmarks and improvements for critical paths
- Linting compliance with `eslint-plugin-react`
- Codebase prepared for future updates and scalability

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Frontend and UI →

react-expert by other authors comes first.

react-expert carlrannaberg react-expert diagnoses hook violations, render loops, and memory leaks in React 18 and 19 codebases. Fixes component issues using progressive steps. CX Codex ★ 763repo stars react-specialist VoltAgent Community react-specialist — a subagent for improving existing React code, from performance and state flow to architecture and tests. Use it when a project needs focused technical changes. CX Codex 815installs react-patterns manutej A skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode that teaches the agent modern React patterns, from hooks and component composition to state management. Covers React 18+, Server Components, and memoization. CX Codex +1 474installs react-zustand-cursorrules-prompt-file PatrickJS The react-zustand-cursorrules-prompt-file Cursor rule guides Zustand use in React and TypeScript projects, covering store design, unnecessary re-renders, and separation of server and client state. CX Codex +1 ★ 41,178repo stars react-mobx sanjeed5 react-mobx sets MobX best practices for React in Cursor: enforces makeObservable and RootStore architecture with fine-grained observer components. CX Codex +1 ★ 3,589repo stars react-state-fallback alexj11324 react-state-fallback is a Claude Code rule that enforces reactive fallbacks instead of copying props into component state. It prevents stale UI bugs during parent updates. CX Codex +1 ★ 88repo stars react-development manutej react-development — a skill that feeds your coding agent React patterns: components, hooks, state and effects, taken from the official react.dev docs. CX Codex +1 470installs

From the same set137

The whole set →
aspnet-core-expert aspnet-core-expert — a subagent for designing, debugging, and optimizing ASP.NET Core web services, middleware, and database access. CX Codex ★ 1,029repo stars sql-expert The sql-expert subagent handles complex SQL, execution plans, indexes, schemas, and transactions. Use it when a query or database design needs a closer review. CX Codex ★ 1,029repo stars docker-expert docker-expert — a Claude subagent for Docker work: Dockerfiles, Compose stacks, volumes, networking, health checks and registries. CX Codex ★ 1,029repo stars cockroachdb-expert cockroachdb-expert — a subagent for CockroachDB cluster setup, schema design, and distributed SQL query tuning. Helps configure multi-region replication and backup routines. CX Codex ★ 1,029repo stars csharp-expert csharp-expert — a C# subagent that checks code against SOLID, moves blocking calls to async/await and hunts bottlenecks. Handy when you refactor or inherit an unfamiliar module. CX Codex ★ 1,029repo stars oauth-oidc-expert oauth-oidc-expert is a Claude Code subagent for OAuth 2.0 and OpenID Connect. It helps review sign-in flows, token handling, and API security. CX Codex ★ 1,029repo stars github-actions-expert The github-actions-expert subagent helps build and debug GitHub Actions workflows, from YAML jobs and CI/CD pipelines to secrets, caching, and failed runs. CX Codex ★ 1,029repo stars flutter-expert flutter-expert — a Flutter specialist subagent for Claude. It handles widgets, state management, animations and API calls; the agent file goes into .claude/agents/. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open