vercel-react-best-practices

Apply Vercel React best practices to optimize React and Next.js applications.

42|11|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/petekp/claude-code-setup --skill vercel-react-best-practices-petekp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/petekp/claude-code-setup/tree/main/skills/vercel-react-best-practices
Command: npx skills add https://github.com/petekp/claude-code-setup --skill vercel-react-best-practices-petekp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of best practices and actionable rules to significantly improve the performance, bundle size, and maintainability of React and Next.js applications.

Core Features & Use Cases

  • Performance Optimization: Apply over 50 rules covering waterfalls, bundle size, server-side rendering, client-side fetching, and re-render efficiency.
  • AI-Assisted Development: Designed for LLMs and agents to ensure consistent, high-performance code generation and refactoring.
  • Use Case: When developing a new feature in a Next.js app, use this Skill to ensure all data fetching is parallelized, components are optimized for re-renders, and the final bundle size is minimized.

Quick Start

Apply the Vercel React best practices to the provided React component code.

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 and reduce bundle size?

To optimize React and Next.js performance, apply over 50 actionable rules targeting waterfalls, bundle size, server-side rendering, client-side fetching, and re-render efficiency.

What is the best way to prevent data fetching waterfalls in Next.js applications?

The best way to prevent data fetching waterfalls in Next.js is to parallelize your data fetching operations, ensuring both server-side and client-side requests execute concurrently.

Why does importing from barrel files increase my React bundle size?

Importing from barrel files increases React bundle size because it forces bundlers to include entire libraries rather than only the specific modules your components actually use.

Can I use these React optimization rules to refactor existing client-side fetching logic?

Yes, you can use these React optimization rules to refactor existing client-side fetching logic by applying guidelines that minimize waterfalls and reduce unnecessary component re-renders.

How do dynamic imports help minimize bundle size in React applications?

Dynamic imports help minimize bundle size in React applications by code-splitting components into separate chunks that load on demand rather than being included in the main bundle.

When should I focus on reducing re-renders versus optimizing server-side rendering in Next.js?

Focus on reducing re-renders for interactive client-side components experiencing performance lag, while optimizing server-side rendering when initial page load and data fetching latency are the bottleneck.