vercel-react-best-practices

Optimize React and Next.js applications with Vercel Engineering best practices.

10|1|Updated Apr 2, 2020
One-click install
npx skills add https://github.com/marcosmoura/dotfiles --skill vercel-react-best-practices-marcosmoura
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/marcosmoura/dotfiles/tree/main/home/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/marcosmoura/dotfiles --skill vercel-react-best-practices-marcosmoura

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines to optimize React and Next.js applications, ensuring peak performance, faster load times, and a smoother user experience.

Core Features & Use Cases

  • Performance Optimization: Apply over 50 rules across 8 categories, from critical waterfall elimination to advanced patterns.
  • Code Refactoring: Identify and fix performance bottlenecks in your React/Next.js codebase.
  • Use Case: When developing a new feature in a Next.js app, consult this Skill to ensure your data fetching, component rendering, and bundle sizes adhere to Vercel's best practices for optimal performance.

Quick Start

Apply the vercel-react-best-practices skill to optimize the performance of your Next.js application.

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?

Eliminate data fetching waterfalls in Next.js by applying server-side fetching best practices and parallel data loading patterns to minimize sequential network requests and reduce overall page load times.

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

The best way to reduce bundle size in a Next.js application is to apply bundle optimization rules that target unnecessary JavaScript, ensuring peak client-side performance and faster initial page loads.

How do I fix React re-render performance bottlenecks?

Fix React re-render performance bottlenecks by applying targeted re-render optimization rules during code refactoring, ensuring components adhere to Vercel Engineering's best practices for optimal rendering performance.

Does this approach work for both client-side data fetching and server-side performance?

Yes, this approach works for both client-side data fetching and server-side performance, providing comprehensive guidelines that cover JavaScript performance, rendering optimization, and advanced patterns for React and Next.js applications.

When should I refactor my React codebase for performance optimization?

You should refactor your React codebase for performance optimization when developing new features or identifying bottlenecks, applying rules across 8 categories like server-side performance and advanced patterns to ensure optimal code quality.