react-best-practices

Apply React/Next.js performance best practices to components and data fetching.

7.8k|770|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/gsd-build/gsd-2 --skill react-best-practices-gsd-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/gsd-build/gsd-2/tree/main/src/resources/skills/react-best-practices
Command: npx skills add https://github.com/gsd-build/gsd-2 --skill react-best-practices-gsd-build

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js apps often suffer from subtle performance regressions due to inconsistent patterns, large bundles, and inefficient rendering. This skill codifies best practices to detect and address these issues across components, pages, and data fetching strategies. It provides a structured set of rules and checklists that guide automated tasks and developer reviews to improve UX and efficiency.

Core Features & Use Cases

  • Standardized performance rules for React/Next.js apps to reduce waterfalls, optimize bundles, and improve server/client boundaries.
  • Actionable patterns for data fetching, caching, and rendering to speed up initial paint and interactive performance.
  • Real-world scenarios and templates that guide reviews, refactors, and automated code generation for consistent outcomes.

Quick Start

Audit a React/Next.js project against the documented rules and apply the relevant patterns to a selected component or page.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I fix React and Next.js rendering performance issues like data waterfalls?

Fix React and Next.js rendering performance issues by applying best practices that eliminate data fetching waterfalls, enforce strategic dynamic imports, and optimize server/client boundaries to improve application speed and user experience.

What is the best way to structure server/client boundaries in Next.js for speed?

The best way to structure server/client boundaries in Next.js is to follow codified performance rules that separate server and client components strategically, optimizing data fetching and rendering patterns to speed up interactive performance.

When should I use Suspense in React to improve rendering performance?

Use Suspense in React to improve rendering performance when you need to enforce patterns that avoid data waterfalls and optimize component loading, which enhances the overall user experience during server-side rendering.

How do I audit a React component against Next.js performance best practices?

Audit a React component against Next.js performance best practices by checking it against structured rules and checklists covering immutable data transformations, bundle optimization, and data fetching strategies to identify and address subtle regressions.