vercel-react-best-practices

Apply Vercel React performance rules to refactor Next.js components.

Updated Jan 17, 2026
One-click install
npx skills add https://github.com/epiphanyapps/mapyourhealth --skill vercel-react-best-practices-epiphanyapps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/epiphanyapps/mapyourhealth/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/epiphanyapps/mapyourhealth --skill vercel-react-best-practices-epiphanyapps

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides comprehensive guidelines and best practices for optimizing React and Next.js applications, focusing on performance, bundle size, and efficient data fetching.

Core Features & Use Cases

  • Performance Optimization: Rules cover eliminating waterfalls, optimizing re-renders, and improving rendering performance.
  • Bundle Size Reduction: Guidance on minimizing JavaScript bundles through techniques like dynamic imports and avoiding barrel files.
  • Server-Side Efficiency: Best practices for server-side rendering, data fetching, and API routes.
  • Use Case: When developing a new feature in a Next.js app, consult this Skill to ensure your data fetching is parallelized, your components are memoized correctly, and your bundle size is minimized for faster load times.

Quick Start

Apply the vercel-react-best-practices skill to refactor the provided React component for improved performance.

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 for data fetching and rendering?

To optimize React and Next.js performance, you should eliminate data fetching waterfalls, parallelize API requests, and correctly memoize components to prevent unnecessary re-renders. This reduces load times and improves server-side efficiency.

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

The best way to reduce JavaScript bundle size in a Next.js application is by using dynamic imports and avoiding barrel files. These optimization techniques prevent unnecessary code from loading, ensuring faster client-side performance.

How do I eliminate data fetching waterfalls in server-side rendering?

To eliminate data fetching waterfalls in server-side rendering, you must parallelize your API requests instead of sequencing them. Fetching data concurrently prevents blocking the render pipeline and improves overall server-side performance.

Does this React optimization approach work with standard client-side data fetching?

Yes, this React optimization approach provides specific guidelines for client-side data fetching alongside server-side rendering and bundle size optimization. It targets automated refactoring to improve rendering performance across your application.

Why does my Next.js component re-render unnecessarily and how can I optimize it?

Your Next.js component re-renders unnecessarily due to unoptimized state changes and prop drilling. You can optimize rendering performance by correctly memoizing components and applying advanced patterns to minimize JavaScript execution overhead.