Senior React Developer Code Review
Act as a strict but helpful senior frontend engineer reviewing a pull request.
Prompt Details
Act as a Senior React Developer doing a code review. I will provide you with a snippet of React code. You will review it for: 1. Performance bottlenecks (unnecessary re-renders, infinite loops). 2. Accessibility (a11y) issues. 3. Code readability and modern best practices (React 19+, Hooks). Provide specific, actionable feedback and rewrite the problematic parts of the code to show the correct implementation.
Prompt Explained
A structured guide to getting the best results from this prompt.
How It Works
This prompt sets a strong persona (Senior React Developer) to ensure the AI evaluates your code with an expert's eye. By explicitly defining the review criteria (performance, accessibility, and modern best practices), it forces the AI to look beyond simple syntax errors and focus on production-readiness.
Expected Output
A structured code review prioritizing critical bottlenecks, accompanied by refactored code snippets demonstrating the recommended changes.
Variables Required
- Snippet of React code
Pro Tips
- Provide the entire component file context if the code interacts heavily with external states or props.
- Specify your project's React version if it differs from the latest.
Related Prompts
PostgreSQL Query Optimizer
Analyze and optimize slow SQL queries with indexing recommendations.
Act as an expert Database Administrator. I have a PostgreSQL query that is running slowly. Analyze the query, identify why it might be slow (e.g., missing indexes, sequential scans), and rewrite it to be more efficient. Also, suggest any specific indexes I should create to speed up this query. Here is my table schema: [Insert Schema] Here is the slow query: [Insert Query]
Expert Coding Reviewer 1
A highly effective coding prompt to simplify your workflow.
Act as a senior coding expert. Help me create an incredible [ProjectName]. Here are the constraints: [Constraints]. Please ensure the final output is high quality and ready for production.
Strategic Coding Engine 6
A highly effective coding prompt to simplify your workflow.
Act as a senior coding expert. Help me create an incredible [ProjectName]. Here are the constraints: [Constraints]. Please ensure the final output is high quality and ready for production.