react-best-practices

Review React and Next.js code for performance anti-patterns.

1|Updated Aug 17, 2025
One-click install
npx skills add https://github.com/SolaneHub/PokeMMO-Compendium --skill react-best-practices-solanehub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/SolaneHub/PokeMMO-Compendium/tree/main/.agents/skills/react-best-practices
Command: npx skills add https://github.com/SolaneHub/PokeMMO-Compendium --skill react-best-practices-solanehub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses performance bottlenecks in React and Next.js applications, ensuring faster load times, smoother rendering, and optimized bundle sizes.

Core Features & Use Cases

  • Performance Auditing: Identifies over 40 common performance anti-patterns.
  • Optimization Guidance: Provides specific code examples and strategies for improvement.
  • Use Case: A developer notices their Next.js app is slow to load. They use this Skill to identify and fix issues like large bundle sizes, request waterfalls, and unnecessary re-renders, resulting in a significantly faster user experience.

Quick Start

Use the react-best-practices skill to review the performance of the current React codebase.

Frequently Asked Questions about react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize React and Next.js application performance?

To optimize React and Next.js performance, apply over 40 targeted rules covering request waterfalls, bundle size reduction, rendering efficiency, and JavaScript execution. This approach identifies anti-patterns and provides specific code examples for faster load times.

What causes unnecessary re-renders in React components?

Unnecessary re-renders in React components are caused by common performance anti-patterns. You can identify and resolve these rendering bottlenecks using comprehensive optimization guidelines that provide specific code strategies to prevent excessive component updates.

How do I reduce bundle size in a Next.js app?

Reduce bundle size in a Next.js app by applying specific optimization rules that target JavaScript execution and dependency management. These guidelines help identify large bundle anti-patterns and provide code examples to split and minimize loaded scripts.

Can I use these React optimization guidelines for code reviews?

Yes, you can use these React optimization guidelines for code reviews. They provide over 40 rules identifying performance anti-patterns, making them highly applicable for auditing existing codebases and refactoring components to enhance application speed.

What is the best way to fix request waterfalls in React?

The best way to fix request waterfalls in React is to apply targeted optimization rules that identify sequential data fetching anti-patterns. These guidelines provide specific code strategies to parallelize requests and improve overall application loading speed.

When should I audit my React codebase for performance bottlenecks?

You should audit your React codebase for performance bottlenecks when you notice slow load times or inefficient rendering. Applying over 40 optimization rules during performance tuning helps identify anti-patterns and refactor components for enhanced speed.