react-best-practices

Diagnose React and Next.js performance issues like waterfalls and re-renders.

1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Inteligentsensingsolutions/tdd-dev-workflow --skill react-best-practices-inteligentsensingsolutions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/Inteligentsensingsolutions/tdd-dev-workflow/tree/main/skills/react-best-practices
Command: npx skills add https://github.com/Inteligentsensingsolutions/tdd-dev-workflow --skill react-best-practices-inteligentsensingsolutions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides concrete, categorized rules and practical patterns to diagnose and fix common React performance problems such as cascading data-fetch waterfalls, excessive client-side JavaScript, large bundle sizes, and unnecessary re-renders that slow down load time and user responsiveness.

Core Features & Use Cases

  • Eliminate Waterfalls: Guidance to parallelize independent requests, use Suspense boundaries, and colocate data requirements to reduce sequential latency.
  • Bundle Size & Loading: Patterns for dynamic imports, targeted imports, conditional loading, and deferring third-party libraries to shrink initial JavaScript payload.
  • Server vs Client Boundaries: Rules for preferring Server Components, minimizing serialization, caching strategies, and placing 'use client' only at leaves.
  • Client Data & Re-rendering: Recommendations to use TanStack Query or SWR, individual store selectors, memoization, stable callbacks, virtualization, and transitions to keep UIs responsive.
  • Use Cases: Speed up page Time to Interactive for a Next.js dashboard; reduce bundle bloat caused by large icon libraries; fix frequent UI jank by identifying and eliminating unnecessary re-renders.

Quick Start

Ask the skill to analyze my React/Next.js repository for bundle bloat, data-fetch waterfalls, and unnecessary re-renders and return prioritized, actionable fixes.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I stop unnecessary re-renders in my React application?

Minimize bundle size in React by using dynamic imports, targeted imports, and deferring third-party libraries to shrink the initial JavaScript payload. The Skill analyzes your repository to identify bundle bloat and provide actionable fixes to speed up Time to Interactive.

What is the best way to eliminate data-fetch waterfalls in Next.js?

Eliminate data-fetch waterfalls by parallelizing independent requests, colocating data requirements, and using Suspense boundaries. The Skill helps diagnose sequential latency issues and provides patterns to optimize client-side data fetching with TanStack Query or SWR.

How do I set server and client component boundaries in React?

Set React server and client component boundaries by preferring Server Components, minimizing serialization, and placing 'use client' only at leaves. The Skill provides concrete rules for caching strategies and optimizing the boundaries in modern Next.js codebases.

Does this approach work with TanStack Query and Server Components?

Yes, the optimization approach fully supports TanStack Query and Server Components. The Skill provides guidance compatible with Server Components, TanStack Query or SWR, dynamic imports, memoization, and Suspense boundaries to optimize modern React data fetching.

Why does my React app load slowly and how can I diagnose it?

Your React app may load slowly due to cascading data-fetch waterfalls, excessive client-side JavaScript, or large bundle sizes. The Skill analyzes your codebase to diagnose these performance problems and returns prioritized, actionable fixes to improve responsiveness.