react-best-practices

Diagnose React and Next.js performance bottlenecks in application code.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/capaas2/Site-teste --skill react-best-practices-capaas2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/capaas2/Site-teste/tree/main/.agent/skills/nextjs-react-expert
Command: npx skills add https://github.com/capaas2/Site-teste --skill react-best-practices-capaas2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you identify and fix performance issues in React and Next.js applications, especially slow page loads, excessive bundle size, server-side waterfalls, and unnecessary re-renders.

Core Features & Use Cases

  • Waterfall Elimination: Restructure async work to run in parallel, defer non-critical awaits, and use Suspense effectively.
  • Bundle Optimization: Reduce initial JavaScript cost with direct imports, dynamic imports, conditional loading, and preload strategies.
  • Server and Rendering Performance: Improve SSR, Server Actions, caching, and client rendering efficiency with practical React and Next.js patterns.
  • Use Case: A product team can use this Skill to review a slow dashboard, spot sequential data fetching and heavy imports, then apply targeted fixes that improve responsiveness and load time.

Quick Start

Ask the skill to review your React or Next.js component for performance bottlenecks and recommend the highest-impact fixes first.

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 slow page loads caused by server-side waterfalls in Next.js?

To fix slow page loads caused by server-side waterfalls in Next.js, restructure async work to run in parallel, defer non-critical awaits, and use Suspense effectively to eliminate sequential data fetching bottlenecks.

What's the best way to reduce initial bundle size in a React application?

The best way to reduce initial bundle size in a React application is applying direct imports, dynamic imports, conditional loading, and preload strategies to lower the initial JavaScript cost.

How do I stop unnecessary re-renders across production React UIs?

To stop unnecessary re-renders across production React UIs, apply practical memoization and targeted rendering optimization patterns to improve client-side fetching inefficiencies and overall rendering efficiency.

How does Suspense work for parallel data fetching in React?

Suspense works for parallel data fetching by allowing React components to suspend rendering while asynchronous operations resolve, enabling you to restructure sequential awaits into parallel non-blocking streams.

Can I improve Server Action and SSR caching performance in Next.js?

You can improve Server Action and SSR caching performance in Next.js by applying practical rendering optimization patterns, restructuring server-side waterfalls, and implementing efficient client-side fetching strategies.