react-best-practices

Diagnose React and Next.js performance bottlenecks and propose optimizations.

8.1k|1.5k|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/vudovn/antigravity-kit --skill react-best-practices-vudovn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/vudovn/antigravity-kit/tree/main/.agent/skills/nextjs-react-expert
Command: npx skills add https://github.com/vudovn/antigravity-kit --skill react-best-practices-vudovn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill consolidates React and Next.js performance best practices into a unified, actionable guide that helps teams identify bottlenecks and implement proven optimizations.

Core Features & Use Cases

  • Comprehensive rules across waterfalls, bundle size, server-side performance, client-side data fetching, re-render optimization, rendering performance, and small JavaScript micro-optimizations.
  • Use Case: A large React/Next.js app suffering from slow hydration, waterfalls, and bloated bundles can be improved by applying parallel data fetching, direct imports, memoization, and Suspense boundaries to achieve faster Time to Interactive.

Quick Start

Load the skill and read the most relevant sections to your current bottleneck, then apply the recommended patterns to refactor components for faster rendering and responsiveness.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I optimize React and Next.js performance bottlenecks like slow hydration and waterfalls?

Optimize React and Next.js performance by applying parallel data fetching, direct imports, and Suspense boundaries. This skill diagnoses bottlenecks like slow hydration and bloated bundles to guide actionable, non-blocking improvements for faster Time to Interactive.

What is the best way to prevent unnecessary component re-rendering in React?

Prevent unnecessary React component re-rendering by applying memoization and selective component composition. This skill provides actionable rules to diagnose rendering bottlenecks and implement safe optimizations for improved client-side responsiveness.

How does memoization work for optimizing server-side performance in Next.js?

Memoization optimizes Next.js server-side performance by caching expensive computations and preventing redundant renders. This skill applies memoization alongside parallel data fetching and caching to ensure safe, non-blocking improvements across server components.

Can I use this approach to reduce bundle size and improve client-side data fetching?

Yes, you can reduce bundle size and improve client-side data fetching by applying direct imports and parallel data fetching. This skill diagnoses bundle bloat and data waterfall issues, proposing actionable optimizations to achieve faster rendering.

When do I need Suspense boundaries for React rendering performance?

You need Suspense boundaries when addressing slow hydration and rendering waterfalls in React. This skill guides you in applying Suspense alongside parallel data fetching to achieve safe, non-blocking improvements and a faster Time to Interactive.