react-best-practices

Identify performance bottlenecks in React/Next.js projects and apply optimization rules.

Updated Sep 6, 2024
One-click install
npx skills add https://github.com/Jaylaelike/pm25-interactive-thaipbs-app --skill react-best-practices-jaylaelike
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/Jaylaelike/pm25-interactive-thaipbs-app/tree/main/.claude/skills/react-best-practices
Command: npx skills add https://github.com/Jaylaelike/pm25-interactive-thaipbs-app --skill react-best-practices-jaylaelike

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured set of React and Next.js performance guidelines to help teams reduce rendering bottlenecks, optimize bundles, and improve user experience.

Core Features & Use Cases

  • A comprehensive catalog of 40+ rules organized by impact and category, including Eliminating Waterfalls, Bundle Size Optimization, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, and Advanced Patterns.
  • Practical guidance for code reviews, refactoring, and performance tuning in real-world React/Next.js projects.
  • Reference material and examples that illustrate incorrect vs correct patterns and provide concrete improvements.

Quick Start

Run a performance audit of a React/Next.js project and apply the guidelines from the references to begin eliminating bottlenecks.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I identify and fix React rendering bottlenecks in my project?

To identify and fix React rendering bottlenecks, this skill applies a structured set of optimization rules covering component rendering, re-render minimization, and advanced patterns. It audits your project to eliminate waterfalls and reduce unnecessary client-side re-renders.

What's the best way to reduce bundle size in a Next.js application?

Reducing bundle size in a Next.js application involves applying targeted bundle size optimization rules. This skill provides a catalog of best practices to analyze your bundling scenarios and enforce concrete improvements for both development and production environments.

How does server-side performance optimization work for React server components?

Server-side performance optimization for React server components works by applying structured rules to improve data fetching and rendering scenarios. This skill enforces guidance on eliminating waterfalls and optimizing server-side execution across your Next.js project.

Can I use these React best practices for both development and production environments?

Yes, you can use these React best practices for both development and production. The optimization rules cover component rendering, data fetching, and bundling scenarios across both environments to ensure comprehensive performance tuning.

How do I eliminate data fetching waterfalls in a React application?

To eliminate data fetching waterfalls in a React application, this skill applies structured optimization rules to your client-side and server-side data fetching patterns. It enforces guidance to restructure requests and improve overall rendering performance.

Why does my React app have poor rendering performance despite following standard patterns?

Poor React rendering performance often stems from unoptimized re-renders, large bundle sizes, or data fetching waterfalls. This skill audits your project against 40 plus rules to identify incorrect patterns and apply correct performance optimizations.