vercel-react-best-practices

Your custom-tailored answer goes here.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/perimetre/ai-toolkit --skill vercel-react-best-practices-perimetre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/perimetre/ai-toolkit/tree/main/plugins/perimetre-apps/skills/vercel-react-best-practices
Command: npx skills add https://github.com/perimetre/ai-toolkit --skill vercel-react-best-practices-perimetre

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Addresses React and Next.js performance regressions by consolidating authoritative optimization patterns from Vercel Engineering into a cohesive guide that teams can apply to real-world codebases.

Core Features & Use Cases

  • Eliminate waterfalls in data fetching and API calls through parallelization and strategic suspenses.
  • Bundle-size optimization via selective imports, dynamic loading, and deferred third-party code.
  • Server-side performance improvements including secure server actions, per-request caching, and efficient data flow.
  • Client-side data fetching guidance with deduplication, SWR strategies, and caching best practices.
  • Real-world scenarios include refactoring Next.js pages for parallel data fetches and reducing bundle size with precise imports.

Quick Start

Audit a React/Next.js module for performance issues and apply these patterns to reduce waterfalls, optimize bundles, and improve data-fetching efficiency.

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 optimize React and Next.js performance regressions in my codebase?

To optimize React performance regressions, apply a catalog of 57 rules across 8 categories that address data fetching, code-splitting, and bundle-size issues. These patterns provide concrete guardrails to guide automated refactoring and eliminate waterfalls.

What causes data fetching waterfalls in Next.js and how do I parallelize them?

Data fetching waterfalls occur when sequential API calls block each other. You can eliminate them by parallelizing data fetches and using strategic suspenses, refactoring Next.js pages to load multiple data sources concurrently instead of sequentially.

What is the best way to reduce bundle size with selective imports in React?

Reducing bundle size requires selective imports, dynamic loading, and deferring third-party code. By applying precise import patterns, you can audit a React module and significantly decrease the amount of JavaScript shipped to the client.

Can I use SWR strategies for client-side data fetching and caching in React?

Yes, you can use client-side data fetching guidance with SWR strategies to deduplicate requests and apply caching best practices. This ensures efficient data flow and prevents redundant network calls during component rendering.

Does this approach support server-side performance improvements like per-request caching?

Yes, server-side performance improvements include secure server actions, per-request caching, and efficient data flow. These patterns consolidate Vercel Engineering optimization techniques directly into your Next.js server components.

When should I use code-splitting versus static imports for third-party libraries?

You should use code-splitting and dynamic loading for third-party code that is not immediately required on initial page load. Deferring these scripts prevents them from blocking rendering and helps minimize the main bundle size.