react-best-practices

Organize 57 React/Next.js performance rules into 8 actionable sections.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/AnvinX1/med-rag --skill react-best-practices-anvinx1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/AnvinX1/med-rag/tree/main/medical_genai_app/.agent/skills/nextjs-react-expert
Command: npx skills add https://github.com/AnvinX1/med-rag --skill react-best-practices-anvinx1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React/Next.js performance can degrade as apps scale, leading to slow pages, high bundle costs, and poor user experience. This Skill consolidates proven optimization rules from Vercel Engineering into an actionable framework, guiding teams to build faster, more reliable frontends.

Core Features & Use Cases

  • 57 rules across 8 sections: async waterfalls, bundle size, server-side performance, client-side data fetching, re-render optimization, rendering performance, JavaScript micro-optimizations, and advanced patterns.
  • Practical guidelines for performance reviews, debugging slow apps, code reviews, and implementing server/client optimizations in Next.js projects.
  • Real-world scenarios: optimizing a large Next.js app with server components, dynamic imports, and parallel data fetching.

Quick Start

Read Sections 1 and 2 to eliminate waterfalls and shrink bundles, then apply Section 3 for server-side improvements.

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 for large applications?

To optimize React and Next.js performance, apply a rule-based framework covering 57 rules across 8 sections, targeting waterfalls, bundle size, and server-side rendering to reduce page load times and bundle costs.

What is the best way to fix asynchronous waterfalls and reduce bundle size in Next.js?

Fixing waterfalls and reducing bundle size involves reading the framework's initial sections to implement parallel data fetching and dynamic imports, effectively shrinking bundle costs and eliminating sequential loading delays.

How does memoization and server rendering improve React performance?

Memoization and server rendering improve React performance by deduplicating client-side data fetching and optimizing re-renders, which leverages server boundaries to minimize unnecessary JavaScript execution on the client.

Can I use these React optimization rules for code reviews and debugging slow apps?

Yes, you can use these React optimization rules as practical guidelines for performance reviews and debugging slow apps, applying structured examples to identify and resolve rendering and data fetching bottlenecks.

Does this framework support both server components and client-side optimizations in Next.js?

Yes, the framework supports both server components and client-side optimizations in Next.js by providing actionable rules that address rendering performance and data fetching across server and client boundaries.