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
.claude/agents/react-expert.mdWhat 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.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/react-expert.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-expert.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-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.