vercel-react-best-practices

Apply Vercel React and Next.js performance optimization guidelines to refactor components.

Updated Apr 10, 2025
One-click install
npx skills add https://github.com/LeighAtkins/OpenPaint --skill vercel-react-best-practices-leighatkins
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/LeighAtkins/OpenPaint/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/LeighAtkins/OpenPaint --skill vercel-react-best-practices-leighatkins

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive set of rules and guidelines to optimize the performance of React and Next.js applications, addressing critical areas like bundle size, server-side rendering, and re-render efficiency.

Core Features & Use Cases

  • Performance Optimization: Apply best practices for eliminating waterfalls, reducing bundle size, and improving server-side data fetching.
  • Code Refactoring: Identify and refactor code to adhere to Vercel's recommended patterns for faster load times and better user experience.
  • Use Case: When developing a new feature in a Next.js app, consult this Skill to ensure data fetching is parallelized, components are memoized correctly, and the initial bundle size is minimized.

Quick Start

Apply the vercel-react-best-practices skill to refactor the provided React component for optimal 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 faster load times?▼

To optimize React and Next.js performance, apply Vercel Engineering guidelines to eliminate data waterfalls, reduce bundle size, and improve server-side rendering for faster load times.

What is the best way to eliminate data fetching waterfalls in Next.js?▼

Eliminating data fetching waterfalls in Next.js requires parallelizing data requests and applying Vercel's recommended server-side fetching patterns to prevent sequential loading delays.

How do I reduce JavaScript bundle size in a React application?▼

Reduce JavaScript bundle size in a React application by applying Vercel's bundle optimization rules, which guide automated refactoring to minimize initial load and strip unnecessary code.

Why does my React component re-render excessively and how can I fix it?▼

React components re-render excessively due to improper memoization or state management; fix this by applying Vercel's re-render optimization patterns to correctly memoize components and data.

Can I use Vercel's React best practices to refactor existing code automatically?▼

Yes, you can use Vercel's React best practices to refactor existing code automatically, applying advanced patterns to generate optimized components and enhance application speed and efficiency.