react-best-practices

Analyze React and Next.js codebases for performance optimization recommendations.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/PolGubau/les-santes --skill react-best-practices-polgubau
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/PolGubau/les-santes/tree/main/.agents/skills/react-best-practices
Command: npx skills add https://github.com/PolGubau/les-santes --skill react-best-practices-polgubau

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developers and teams often struggle to identify performance bottlenecks and best practices in React and Next.js applications, leading to slow load times and suboptimal user experiences.

Core Features & Use Cases

  • Comprehensive Guidelines: Provides detailed, step-by-step best practices for React and Next.js performance optimization.
  • Automated Refactoring Support: Assists in code review and refactoring to eliminate waterfalls, reduce bundle size, parallelize data fetching, and enhance rendering efficiency.
  • Use Case: A team refactors a large Next.js e-commerce site to improve TTI and reduce server load by applying the guidelines for lazy-loading, Suspense boundaries, and static I/O hoisting.

Quick Start

Use the react-best-practices skill to analyze your codebase and receive detailed recommendations for improving React and Next.js performance.

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 applications for maximum performance?

To optimize React and Next.js applications, you should apply best practices like lazy loading, Suspense boundaries, and static I/O hoisting to reduce load times, enhance rendering, and minimize bundle size across development and production environments.

What's the best way to reduce bundle size and eliminate data fetching waterfalls in Next.js?

The best way to reduce bundle size and eliminate data fetching waterfalls is by refactoring code to parallelize data fetching, applying lazy loading, and hoisting static I/O operations to enhance rendering efficiency.

Does this React performance optimization guidance work for refactoring legacy codebases?

Yes, this React performance optimization guidance supports refactoring legacy codebases by assisting in code review to identify performance bottlenecks and implement scalable, high-performance improvements for existing web apps.

How do I use Suspense boundaries and lazy loading to improve TTI in a Next.js e-commerce site?

You can improve Time to Interactive (TTI) in a Next.js e-commerce site by implementing Suspense boundaries and lazy loading to reduce server load and enhance rendering efficiency during data fetching.

Why does my Next.js app have slow load times and suboptimal user experiences?

Your Next.js app likely has slow load times and suboptimal user experiences due to unoptimized data fetching waterfalls, large bundle sizes, and inefficient rendering that can be resolved through targeted code review and refactoring.