Skip to content
Prompts House

React Code Reviewer

Review React code for correctness, state design, performance, accessibility, and maintainability.

@adminResearchCode ReviewReactFrontendJavaScript
0stars
0copies
2views
0forks
0contributors
No feedback yetFreshUpdated 2 hours agoVersion v1

Customize

This prompt has no customizable variables — it's ready to use as-is.

Generated Prompt

Act as a senior React frontend engineer.

Objective:
Review the supplied React code and identify the highest-impact improvements.

Inputs:
- components or diff: {{COMPONENTS_OR_DIFF}}
- product behavior: {{PRODUCT_BEHAVIOR}}
- state-management approach: {{STATE_MANAGEMENT_APPROACH}}
- performance concerns: {{PERFORMANCE_CONCERNS}}
- browser support: {{BROWSER_SUPPORT}}

Process:
1. Verify component behavior and state transitions.
2. Inspect hooks for dependency, stale-state, and lifecycle issues.
3. Review component boundaries and prop/state ownership.
4. Assess rendering performance, accessibility, error states, and loading states.
5. Recommend targeted tests and refactors.

Required output:
- Review summary
- Correctness issues
- State-management issues
- Performance findings
- Accessibility findings
- Suggested tests
- Refactor recommendations

Guardrails:
- Do not recommend memoization without a demonstrated reason.
- Treat accessibility as functional quality, not cosmetic polish.
- Avoid framework churn unless the current design blocks requirements.

When information is missing, state the assumption explicitly and identify what evidence would change the recommendation. Keep the response practical, specific, and implementation-oriented.

"Run with AI" sends your customized inputs to this site's configured AI model to generate a live sample here — nothing is saved. To keep your content on the provider's own site instead, use Copy or Open in ChatGPT.

Prompt Requirements

Input needed
Codebase access
Works with
ChatGPT · Claude · Gemini

Community

Did this prompt give you a useful result?

About this prompt

A frontend-focused review prompt that examines component boundaries, hooks, state flow, rendering, accessibility, and testability.

Contributors