vercel-react-best-practices

Guide React and Next.js performance through async composition, bundling, and render optimization.

41|6|Updated Nov 27, 2025
One-click install
npx skills add https://github.com/mralexsaavedra/spotiarr --skill vercel-react-best-practices-mralexsaavedra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/mralexsaavedra/spotiarr/tree/main/skills/vercel-react-best-practices
Command: npx skills add https://github.com/mralexsaavedra/spotiarr --skill vercel-react-best-practices-mralexsaavedra

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

React and Next.js apps often underperform due to waterfalls, bloated bundles, inefficient client/server data flow, and unnecessary re-renders.

Core Features & Use Cases

  • Eliminates waterfalls by pushing independent async work into parallel execution and streaming with Suspense where appropriate.
  • Reduces bundle size by avoiding heavy imports at startup, using dynamic/conditional loading, and preloading based on intent.
  • Improves server and client performance by preventing duplicate serialization, minimizing RSC boundary payload, hoisting static I/O, and applying safe caching/dedup patterns.

Quick Start

Apply these guidelines when reviewing or refactoring a React or Next.js feature by checking for matching rule IDs and adjusting the code to follow the recommended async, bundling, and rendering patterns.

Frequently Asked Questions about vercel-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 React Server Components?

Eliminate React Server Component waterfalls by pushing independent async work into parallel execution and streaming with Suspense where appropriate. Dependency-aware parallelization prevents sequential blocking across server actions and route handlers.

What's the best way to reduce React bundle size with dynamic loading?

Reduce React bundle size by avoiding heavy imports at startup and using dynamic or conditional loading. Preloading based on user intent further minimizes initial payload weight across client data fetching scenarios.

How do I minimize RSC payload serialization in Next.js?

Minimize Next.js RSC payload serialization by preventing duplicate serialization and hoisting static I/O operations. Applying React.cache and LRU caching patterns deduplicates requests and shrinks the client-server boundary payload.

How do I prevent unnecessary re-renders when refactoring React components?

Prevent unnecessary React re-renders during refactoring by applying performance-focused rendering patterns and JS micro-optimizations. Checking deterministic rule IDs guides safe render and update optimizations across component boundaries.

Can I apply these Next.js performance rules to existing code reviews?

You can apply these Next.js performance rules to existing code reviews by checking for matching rule IDs and adjusting code to follow recommended async, bundling, and rendering patterns across server actions, route handlers, and client fetching.

Why does my Next.js app underperform despite using React Server Components?

Your Next.js app underperforms with React Server Components due to bloated bundles, inefficient client-server data flow, and waterfalls. Correcting async composition, minimizing serialization, and applying safe caching resolves these bottlenecks.