react-best-practices

Eliminate performance bottlenecks in React and Next.js applications.

1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/Ritik-Sharma1/custom-frontend-ai-skills --skill react-best-practices-ritik-sharma1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/Ritik-Sharma1/custom-frontend-ai-skills/tree/main/nextjs-react-expert
Command: npx skills add https://github.com/Ritik-Sharma1/custom-frontend-ai-skills --skill react-best-practices-ritik-sharma1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

React and Next.js performance optimization challenges across modern frontend apps, including waterfalls, bloated bundles, and confusing server/client boundaries, that hinder speed and user experience.

Core Features & Use Cases

  • Comprehensive rules across 8 sections offering actionable guidance on parallel data fetching, dynamic imports, memoization, caching, and server/client optimization.
  • Suitable for developers performing performance reviews, code audits, architecture decisions, and feature implementations in React/Next.js projects.
  • Example: reduce initial load time by eliminating waterfalls and shrinking main bundle size while preserving UX.

Quick Start

Run a performance audit on your Next.js project and apply the highest-impact rules 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 eliminate data fetching waterfalls in Next.js applications?

Eliminate data fetching waterfalls in Next.js by enabling parallel data fetching and leveraging server actions to avoid sequential client-server requests. This approach removes cascading fetches, shrinks main bundle size, and optimizes rendering speed.

When should I use dynamic imports and memoization in React?

Use dynamic imports and memoization in React during feature development and performance audits to reduce initial load time. Apply these techniques across UI components to prevent unnecessary re-renders and shrink the main bundle size.

How do I optimize server and client boundaries in Next.js for better performance?

Optimize Next.js server and client boundaries by applying rules for caching, server actions, and client data fetching. This resolves confusing boundary issues, reduces bloated bundles, and ensures optimal rendering across your application architecture.

What's the best way to perform a React performance audit during code reviews?

Perform a React performance audit during code reviews by applying actionable rules across eight sections covering parallel data fetching, dynamic imports, and memoization. This identifies bottlenecks and guides high-impact architectural improvements.

Does this approach apply to both React and Next.js performance optimization?

Yes, this approach applies to both React and Next.js performance optimization. It provides comprehensive rules for UI components, server actions, and Next.js specific features like after() and connection() to achieve optimal rendering.

Why does my React application have a bloated bundle and slow initial load?

Your React application has a bloated bundle and slow initial load due to waterfalls, missing dynamic imports, and unoptimized server/client boundaries. Implementing memoization and parallel data fetching resolves these frontend performance bottlenecks.