vercel-react-only-best-practices

Apply Vercel best practices to optimize React component performance.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/pelith/Project-Remora-Frontend --skill vercel-react-only-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-only-best-practices
Source: https://github.com/pelith/Project-Remora-Frontend/tree/main/.agents/skills/vercel-react-only-best-practices
Command: npx skills add https://github.com/pelith/Project-Remora-Frontend --skill vercel-react-only-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill consolidates React performance guidelines from Vercel Engineering to help developers write, review, and refactor React code to achieve faster, more reliable UI.

Core Features & Use Cases

  • Phased guidance across 7 priority categories (Eliminating Waterfalls, Bundle Size, Data Fetching, Re-rendering, Rendering, JavaScript, Advanced Patterns) to drive automated refactoring and code-gen tasks.
  • Practical patterns for deferring awaits, strategic Suspense boundaries, avoiding barrel imports, memoization, and explicit dependency management.
  • Use Case: When optimizing a large React dashboard, apply these rules to reduce waterfalls, shrink bundles, and improve perceived performance during interactions.

Quick Start

Apply the guidelines to a failing React component by auditing for waterfall, bundling, data-fetching, and render patterns; implement the recommended patterns and verify improvements with automated checks.

Frequently Asked Questions about vercel-react-only-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize React performance and eliminate data fetching waterfalls?

Optimize React performance by deferring awaits and applying strategic Suspense boundaries to prevent data fetching waterfalls. This approach isolates slow network requests, ensuring faster perceived UI rendering during complex component interactions.

What is the best way to reduce bundle size and avoid barrel imports in React?

Avoiding barrel imports is a best practice to reduce React bundle size by preventing unused code from bloating the final build. Refactoring import statements ensures only necessary modules are bundled, significantly improving load times.

How do I stop unnecessary re-renders when optimizing a large React dashboard?

Stop unnecessary re-renders in React by applying memoization, origin state derivation, and primitive dependency strategies. These patterns ensure components only re-render when their exact inputs change, boosting dashboard interaction speed.

Does this React optimization skill work with SWR for data fetching?

Yes, the React optimization guidelines explicitly employ SWR patterns for efficient data fetching. Using SWR helps manage cached responses and background synchronization, reducing render waterfalls and improving UI reliability.

When should I apply Suspense boundaries versus deferring awaits in React?

Apply strategic Suspense boundaries to handle UI loading states for component subtrees, while deferring awaits targets specific asynchronous operations to unblock rendering. Combining both patterns effectively eliminates cascading network waterfalls.

What are the limitations of memoization for React rendering optimization?

Memoization limitations arise when primitive dependency strategies are ignored or state derivation is misplaced. Overusing memoization on simple components adds memory overhead without meaningful render speed improvements, requiring careful architectural refactoring.

Related Skills