react-best-practices

Apply 57 React and Next.js performance rules across 8 categories.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/HyperDev1/hx-ai --skill react-best-practices-hyperdev1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/HyperDev1/hx-ai/tree/main/src/resources/skills/react-best-practices
Command: npx skills add https://github.com/HyperDev1/hx-ai --skill react-best-practices-hyperdev1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js performance quality often degrades as apps scale. This Skill provides a centralized, vendor-neutral catalog of optimization guidelines to prevent common inefficiencies and help teams build faster, more reliable UIs.

Core Features & Use Cases

  • 57 rules across 8 categories (Eliminating Waterfalls, Bundle Size Optimization, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, Advanced Patterns) to guide automated refactoring and code generation.
  • Structured guidance for auditing, refactoring, and improving React/Next.js code, including data fetching strategies, caching, and safe rendering patterns.
  • Use cases include code reviews, performance-focused refactors, and automated tooling prompts to enforce best practices across teams.

Quick Start

Review and apply the 57 rules across the 8 categories to your React/Next.js projects.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
What are the best practices for React and Next.js performance optimization?

To refactor React components for better performance, apply structured guidelines for re-render optimization, client-side data fetching, and safe rendering patterns to prevent common inefficiencies as your application scales.

How do I eliminate waterfalls and optimize bundle size in Next.js?

To eliminate waterfalls and optimize bundle size in Next.js, apply targeted rules from a comprehensive catalog covering data fetching strategies, caching, and bundle optimization to improve load times and reduce cascading requests.

Can I use these guidelines for automated code reviews and refactoring?

Yes, you can use these guidelines for automated code reviews and refactoring. The 57 prioritized rules are designed to guide automated tooling prompts, enforce best practices across teams, and improve code generation.

Does this catalog cover server-side rendering and client-side data fetching?

Yes, this catalog covers server-side rendering and client-side data fetching. It includes dedicated categories for server-side performance, client-side data fetching strategies, and advanced patterns to optimize React and Next.js applications.

When should I use advanced patterns for JavaScript performance in React?

You should use advanced patterns for JavaScript performance in React when basic refactoring is insufficient. This category provides specialized rules to address complex rendering performance and execution bottlenecks.