react-best-practices

Diagnose React and Next.js performance bottlenecks and generate prioritized fixes.

Updated May 19, 2026
One-click install
npx skills add https://github.com/TimeKast/AgendaInteligente --skill react-best-practices-timekast
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/TimeKast/AgendaInteligente/tree/main/.agent/skills/nextjs-react-expert
Command: npx skills add https://github.com/TimeKast/AgendaInteligente --skill react-best-practices-timekast

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

React and Next.js apps can become slow and inefficient due to waterfalls in async code, bloated bundles, slow server rendering, redundant client fetching, excessive re-renders, and inefficient rendering work.

Core Features & Use Cases

  • Eliminate waterfalls by identifying sequential awaits and restructuring logic to run independent operations in parallel.
  • Reduce bundle size by avoiding barrel imports, using dynamic imports for heavy components, and loading non-critical third-party libraries after hydration.
  • Improve server and client performance by applying server-side parallel fetching patterns, using caching/deduplication strategies, and leveraging SWR for automatic request deduplication.
  • Cut re-renders and rendering cost using React performance patterns (memoization, derived state, effect hygiene, Suspense/activity where appropriate).
  • Target hot-path JavaScript inefficiencies with micro-optimizations such as caching repeated computations and minimizing expensive DOM/layout work.

Quick Start

Use the react-best-practices skill to review your Next.js/React codebase for performance bottlenecks and generate prioritized fixes starting with eliminating waterfalls and reducing bundle size.

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 React and Next.js performance issues like slow server rendering and bloated bundles?

To fix React and Next.js performance issues, you must diagnose inefficient async patterns, reduce bundle bloat via import hygiene, and apply server-side rendering best practices to eliminate bottlenecks.

What is the best way to reduce bundle size in a Next.js application?

The best way to reduce bundle size is avoiding barrel imports, using dynamic imports for heavy components, and loading non-critical third-party libraries after hydration to minimize initial JavaScript.

How do I eliminate data fetching waterfalls in Next.js server components?

Sequential awaits create waterfalls in Next.js server components. You fix them by identifying sequential operations and restructuring the logic to run independent operations in parallel instead.

Can I use SWR to deduplicate client-side data fetching in React?

Yes, you can use SWR for automatic request deduplication. It improves client-side performance by caching strategies and preventing redundant data fetching across multiple components.

How do I cut excessive re-renders and rendering cost in React?

Cut React re-renders and rendering cost by applying performance patterns like memoization, using derived state, enforcing effect hygiene, and implementing Suspense where appropriate.