vercel-react-best-practices

Rewrite React and Next.js patterns to reduce waterfalls, bundle size, and rendering inefficiencies.

Updated May 26, 2026
One-click install
npx skills add https://github.com/anukkrit149/anukkrit-skills --skill vercel-react-best-practices-anukkrit149
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/anukkrit149/anukkrit-skills/tree/main/cloud/skills/vercel-react-best-practices
Command: npx skills add https://github.com/anukkrit149/anukkrit-skills --skill vercel-react-best-practices-anukkrit149

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces slow page loads and inefficient React/Next.js code by providing Vercel-approved, automation-friendly rules that eliminate common performance bottlenecks like waterfalls, large bundles, and excessive re-renders.

Core Features & Use Cases

  • Cut waterfalls and unblock rendering using streaming-friendly Suspense boundaries and parallel data fetching patterns for RSCs, API routes, and Server Actions.
  • Shrink bundles and improve cold start/TTI by applying import discipline (avoid barrel imports), dynamic imports for heavy UI, and conditional/deferred loading of non-critical dependencies.
  • Optimize server/client boundaries with targeted serialization minimization, per-request deduplication patterns (React.cache), cross-request caching (LRU), and safer client data handling to prevent hydration flicker.
  • Use cases: code review and automated refactoring of React/Next.js apps, performance-focused PR triage, and generating code that follows best practices for throughput, latency, and render efficiency.

Quick Start

Apply the vercel-react-best-practices Skill to your Next.js or React codebase to systematically rewrite the slowest paths for faster rendering, smaller bundles, and fewer re-renders.

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 fix data fetching waterfalls in React Server Components?

To fix data fetching waterfalls in React Server Components, you should parallelize data fetching requests and use streaming-friendly Suspense boundaries to unblock rendering progressively rather than waiting for all data to load sequentially.

What's the best way to reduce bundle size and improve TTI in Next.js?

To reduce bundle size and improve TTI in Next.js, apply import discipline by avoiding barrel exports, use dynamic imports for heavy UI components, and conditionally defer loading non-critical dependencies to shrink the initial payload.

How do I optimize React Server Component and client boundaries to prevent hydration flicker?

Optimize React Server Component and client boundaries by minimizing serialization, applying per-request deduplication with React.cache, and implementing safer client data handling strategies to effectively prevent hydration flicker.

Why is my Next.js app slow to render on the server and how can I improve LCP?

Your Next.js app may render slowly on the server due to bloated bundles and sequential fetching, so you can improve LCP by applying direct imports, parallelizing data fetching, and using Suspense streaming to prioritize critical page content.

Can I use this approach to review and refactor existing React codebases for performance?

Yes, you can use this approach to review and refactor existing React codebases by systematically rewriting slow paths, refactoring RSC boundaries, and optimizing data fetching for APIs and Server Actions to improve throughput and latency.

When should I use cross-request caching versus per-request deduplication in React?

Use per-request deduplication with React.cache to avoid redundant fetches within a single request, and apply cross-request caching like LRU when you need to persist data across multiple requests for safer and more efficient client data handling.