vercel-react-best-practices

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

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/rizaldiem/digital-invitation-web_V2 --skill vercel-react-best-practices-rizaldiem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/rizaldiem/digital-invitation-web_V2/tree/main/.windsurf/skills/vercel-react-best-practices
Command: npx skills add https://github.com/rizaldiem/digital-invitation-web_V2 --skill vercel-react-best-practices-rizaldiem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide eliminates common performance pitfalls in React and Next.js projects by giving concrete, prioritized rules to remove waterfalls, shrink bundles, and speed server and client rendering so applications load faster and use fewer resources.

Core Features & Use Cases

  • Eliminating Waterfalls: patterns and examples to parallelize async work and use Suspense boundaries to improve Time to First Paint and TTI.
  • Bundle Size Optimization: guidance on avoiding barrel imports, deferring third-party libraries, dynamic imports, and intent-based preloading to reduce initial payloads.
  • Server & Client Performance: rules for server-side caching (React.cache, LRU), minimizing RSC serialization, authenticating Server Actions, and non-blocking background work.
  • Use Case: run this checklist during code review, automated refactoring, or when redesigning deployment to reduce cold-start latency, LCP, and bundle-related regressions.

Quick Start

Audit the specified Next.js page and apply the vercel-react-best-practices rules to eliminate waterfalls, reduce bundle size, and minimize RSC serialization.

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 data fetching waterfalls by parallelizing promises and using Suspense boundaries. This improves Time to First Paint and TTI by resolving independent async requests concurrently instead of sequentially.

What is the best way to reduce initial JavaScript bundle size in Next.js?

Reduce initial Next.js bundle size by avoiding barrel imports, deferring third-party libraries, and using dynamic imports. Intent-based preloading further minimizes initial payloads and prevents bundle-related regressions.

How do I minimize React Server Component serialization for client props?

Minimize RSC serialization by reducing the data passed from server to client components. Passing only necessary primitives and avoiding large objects lowers server-client serialization overhead and improves rendering speed.

What caching patterns improve Next.js server and client performance?

Next.js performance improves using React.cache for per-request memoization and LRU for cross-request caching. These patterns reduce redundant server-side computations and database queries during page rendering.

How do I secure Next.js Server Actions against unauthorized requests?

Secure Next.js Server Actions by authenticating requests within the action handler. This prevents unauthorized mutations and ensures safe server-side execution without relying solely on client-side route protection.

Why does my Next.js app have a slow cold start and high LCP?

Slow cold starts and high LCP in Next.js often stem from large initial payloads and sequential data fetching. Reducing bundle size, parallelizing promises, and implementing server-side caching resolve these deployment bottlenecks.