vercel-react-best-practices

Apply Vercel performance optimization rules to React and Next.js code.

6|8|Updated May 9, 2024
One-click install
npx skills add https://github.com/GELLIFY/acme-app --skill vercel-react-best-practices-gellify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/GELLIFY/acme-app/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/GELLIFY/acme-app --skill vercel-react-best-practices-gellify

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses common performance bottlenecks in React and Next.js applications, ensuring faster load times, smoother interactions, and improved user experience.

Core Features & Use Cases

  • Performance Optimization: Provides 57 rules across 8 categories, from critical waterfall elimination to advanced patterns.
  • Code Refactoring Guidance: Offers specific examples of incorrect vs. correct implementations for various performance issues.
  • Use Case: When developing a new feature, consult this Skill to ensure data fetching is parallelized, bundle sizes are minimized, and re-renders are optimized, leading to a faster and more responsive application.

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 bottlenecks?

To optimize React and Next.js performance, apply comprehensive guidelines covering waterfall elimination, bundle size minimization, server-side performance, and re-render optimization. This provides 57 specific rules with incorrect versus correct code examples to refactor critical bottlenecks.

What's the best way to eliminate data fetching waterfalls in Next.js?

The best way to eliminate Next.js data fetching waterfalls is to parallelize client-side and server-side data fetching requests. Following Vercel Engineering best practices ensures data dependencies are resolved concurrently rather than sequentially, significantly improving load times.

How do I reduce bundle size and JavaScript performance issues in React?

Reduce React bundle size and JavaScript performance issues by applying targeted optimization rules that minimize shipped code and streamline execution. These guidelines provide specific refactoring examples to identify and remove unnecessary dependencies and bloated logic.

Can I use these optimization rules to refactor existing React components?

Yes, you can use these optimization rules to refactor existing React components. The guidelines provide specific examples of incorrect versus correct implementations, allowing developers and AI agents to directly review and resolve re-render and rendering performance issues in current codebases.

Why does my Next.js application have slow server-side rendering performance?

Slow Next.js server-side rendering performance often stems from unoptimized data fetching and inefficient rendering patterns. Applying best practices for server-side performance and client-side data fetching resolves these bottlenecks by ensuring parallel execution and minimized bundle sizes.

What are advanced patterns for React re-render optimization?

Advanced patterns for React re-render optimization involve applying specific rules to prevent unnecessary component updates and streamline rendering performance. The guidelines cover 8 categories of optimization, providing correct implementation examples to ensure smoother interactions and faster load times.