react-best-practices

Optimize React and Next.js performance by eliminating waterfalls and reducing bundle size.

14|4|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/michaelshimeles/react-best-practices --skill react-best-practices-michaelshimeles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/michaelshimeles/react-best-practices/tree/main
Command: npx skills add https://github.com/michaelshimeles/react-best-practices --skill react-best-practices-michaelshimeles

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps developers identify and remove performance bottlenecks in React and Next.js applications by eliminating request waterfalls, minimizing bundle size, and improving rendering efficiency to achieve faster load times and smoother interactions.

Core Features & Use Cases

  • Eliminating Waterfalls: Recommendations to defer awaits, parallelize independent fetches with Promise.all, and structure data fetching to prevent sequential latency.
  • Bundle Size Optimization: Guidance on avoiding barrel imports, using direct or conditional imports, and applying dynamic imports to reduce initial JavaScript payload.
  • Server and Client Patterns: Best practices for server components, cross-request caching, per-request deduplication, and client-side caching strategies for efficient data fetching.
  • Use Case: When auditing a Next.js application with slow LCP and long TTI, apply the rules to prioritize fixes such as parallelizing API calls, splitting heavy components, and introducing streaming/Suspense boundaries.

Quick Start

Use the react-best-practices skill to analyze my Next.js project and produce a prioritized list of top performance fixes focused on 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 eliminate request waterfalls in Next.js applications?

To eliminate request waterfalls in Next.js, parallelize independent data fetches using Promise.all and defer awaits to prevent sequential latency. This restructuring of server and client data fetching directly improves load times by allowing async operations to execute concurrently.

How do I reduce bundle size in React by avoiding barrel imports?

Reduce bundle size in React by replacing barrel imports with direct or conditional imports. This prunes unused JavaScript payload from your initial load, and you can apply dynamic imports alongside Suspense boundaries to further split heavy components.

What are the best practices for server-side caching in React?

Best practices for server-side caching in React involve implementing cross-request caching and per-request deduplication. These server and client caching strategies ensure efficient data fetching and minimize redundant API calls during server-side rendering.

What is the best way to audit a React app for slow LCP and long TTI?

The best way to audit a React app for slow LCP and long TTI is to profile the application against performance rules to produce a prioritized list of fixes. This process identifies bottlenecks like request waterfalls and heavy bundle sizes to target for refactoring.

Can I use Suspense boundaries to improve rendering efficiency in Next.js?

Yes, you can use Suspense boundaries to improve rendering efficiency in Next.js by enabling streaming and splitting heavy components. This approach optimizes server-side rendering by allowing the UI to load progressively rather than waiting for all data.