react-best-practices

Apply React and Next.js performance best practices to components and pages.

4|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/ClubMediterranee/ai-core --skill react-best-practices-clubmediterranee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/ClubMediterranee/ai-core/tree/main/skills/react-best-practices
Command: npx skills add https://github.com/ClubMediterranee/ai-core --skill react-best-practices-clubmediterranee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js projects often suffer from performance pitfalls that degrade user experience. This skill consolidates 64 rules and best practices from Vercel Engineering to help engineers identify and fix bottlenecks in rendering, data fetching, bundling, and hydration.

Core Features & Use Cases

  • Built-in patterns for eliminating waterfalls, parallel data fetching, and server-side performance.
  • Guidance on bundle optimization, Suspense, and resource hints to accelerate load times.
  • Use cases spanning development, testing, and production deployments across React components and Next.js pages.

Quick Start

Review a React/Next.js page and apply one performance improvement pattern, such as converting sequential data fetches into Promise.all.

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 data fetching waterfalls to improve page performance?

Eliminate data fetching waterfalls by converting sequential awaits into parallel data fetching with Promise.all. This pattern improves UI responsiveness by resolving multiple requests simultaneously across React components and Next.js pages.

Does this React optimization guidance apply to Next.js server components?

Yes, these React performance best practices apply directly to Next.js server components. The guidance covers optimizations across server and client boundaries, including server action authentication, deferring awaits, and resource hints.

What's the best way to optimize React bundle size and load times?

To optimize React bundle size, avoid barrel imports and apply bundle optimization patterns. This reduces unnecessary client-side code, accelerating load times alongside Suspense boundary implementation and resource hint usage.

How do I speed up Next.js hydration for better UI responsiveness?

Speed up Next.js hydration by applying patterns like memoization and Suspense boundaries. These best practices defer heavy rendering work and prioritize critical UI updates across server and client component boundaries.

Why should I avoid barrel imports in React performance optimization?

Avoiding barrel imports prevents bundling unused modules into your client-side code. This optimization pattern reduces bundle size and parsing overhead, directly improving load times and UI responsiveness for React and Next.js applications.