vercel-react-best-practices

Codify React/Next.js performance best practices for components, data fetching, and bundles.

Updated Jun 6, 2025
One-click install
npx skills add https://github.com/mmrakt/dotfiles --skill vercel-react-best-practices-mmrakt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/mmrakt/dotfiles/tree/main/.claude/skills/vercel-react-best-practices
Command: npx skills add https://github.com/mmrakt/dotfiles --skill vercel-react-best-practices-mmrakt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React/Next.js projects often suffer from suboptimal performance due to waterfalls, large bundles, and inefficient data fetching patterns. This Skill codifies Vercel’s proven guidelines to help engineers write, review, and refactor code to maximize performance across components, routes, and server actions.

Core Features & Use Cases

  • Provide a structured, battle-tested checklist for eliminating waterfalls, reducing bundle size, and optimizing server/client rendering.
  • Guide developers during feature development, code reviews, and refactors to apply scalable performance patterns in both server and client contexts.
  • Use across tasks involving React components, Next.js pages, data fetching, and bundle optimization to consistently improve user experience.

Quick Start

Review a React/Next.js codebase and apply the defined performance patterns to improve rendering, data fetching, and bundling.

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 Next.js?

To eliminate data fetching waterfalls in Next.js, apply parallel data fetching patterns during component development or refactoring. This enforces guidance on enabling concurrent requests and safe caching strategies to improve performance outcomes.

What is the best way to optimize React server actions for performance?

Optimizing React server actions for performance requires applying structured best practices during feature development. This enforces guidance on safe caching strategies and secure server-side fetching to consistently improve user experience.

How do I reduce bundle size when building React components?

Reducing bundle size when building React components requires applying battle-tested performance patterns during writing or review tasks. This enforces guidance on minimizing bundle size and optimizing server and client rendering contexts.

When should I apply safe caching strategies in Next.js data fetching?

Safe caching strategies in Next.js data fetching should be applied whenever optimizing server actions and client-side fetching. This enforces security considerations alongside performance patterns to improve outcomes without compromising data integrity.

Can I use these Next.js best practices to refactor an existing codebase?

Yes, you can use these best practices to refactor an existing React codebase. The skill applies during refactoring tasks across React components and Next.js pages to identify and codify production-grade performance improvements.

Do I need to configure dependencies before optimizing React component performance?

No external dependencies are required to start optimizing React component performance. You can apply the defined performance patterns directly during feature development, code reviews, and refactors to improve rendering, data fetching, and bundling.