react-best-practices

Identify and apply React/Next.js performance best practices during code reviews.

42|3|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/pratikrath126/ai-image-detector --skill react-best-practices-pratikrath126
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/pratikrath126/ai-image-detector/tree/main/.agent/kit-skills/nextjs-react-expert
Command: npx skills add https://github.com/pratikrath126/ai-image-detector --skill react-best-practices-pratikrath126

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Consolidates React and Next.js performance best practices to help teams build faster, smoother UIs by eliminating waterfalls, shrinking bundles, and reducing unnecessary renders.

Core Features & Use Cases

  • Waterfall elimination patterns: use Promise.all, parallel data fetching, and Suspense boundaries to prevent sequential awaits.
  • Bundle size optimization: avoid barrel imports, prefer direct imports, and dynamic imports for heavy components to reduce initial payload.
  • Rendering and memoization strategies: apply React.memo, useMemo, useCallback, and server/client component patterns to minimize re-renders and data transfer.

Quick Start

Run a quick performance audit on a sample Next.js project and implement the top three optimization patterns.

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?

Eliminate Next.js data fetching waterfalls by using Promise.all for parallel fetching and Suspense boundaries to prevent sequential awaits and streamline rendering.

What is the best way to reduce bundle size in React applications?

Reduce React bundle size by avoiding barrel imports, preferring direct imports, and utilizing dynamic imports for heavy components to significantly shrink initial payload size.

When should I use memoization to optimize React component re-renders?

Use memoization to optimize React re-renders by applying React.memo, useMemo, and useCallback to minimize unnecessary component renders and data transfer across server-client boundaries.

How do I run a performance audit on an existing Next.js project?

Run a Next.js performance audit by analyzing UI components, server-client boundaries, and bundling to identify and implement top optimization patterns like dynamic imports and memoization.

Do I need to understand React Server Components to optimize Next.js performance?

Yes, understanding React Server Components is required to optimize Next.js performance, as applying server-client component patterns minimizes re-renders and reduces data transfer.