vercel-react-best-practices

Apply React and Next.js performance patterns to optimize rendering, bundling, and data fetching.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a comprehensive, battle-tested set of performance guidelines to help teams write, review, and refactor React and Next.js code for optimal performance.

Core Features & Use Cases

  • Guidelines spanning 8 priority categories (Eliminating Waterfalls, Bundle Size Optimization, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, Advanced Patterns) to guide code changes.
  • Practical rules with concrete examples for common scenarios like data fetching, code-splitting, and SSR hydration, enabling automated tooling and consistent practices.
  • Scenarios include writing new components/pages, reviewing existing code, and refactoring to improve TTI, LCP, and bundle size.

Quick Start

Review a React/Next.js codebase and start applying the documented patterns to optimize rendering, bundling, and data fetching.

Frequently Asked Questions about vercel-react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for optimizing React and Next.js performance?

React and Next.js performance optimization applies proven patterns across eight priority categories, including eliminating waterfalls, bundle size reduction, server-side rendering, and re-render optimization to improve TTI and LCP metrics.

How do I refactor React components to reduce bundle size?

Refactoring React components to reduce bundle size involves applying code-splitting rules and bundle optimization patterns documented in the skill, enabling automated tooling to identify and remove unnecessary client-side JavaScript.

How does data fetching affect server-side rendering performance in Next.js?

Server-side rendering performance in Next.js depends on eliminating data fetching waterfalls, utilizing optimized client-side fetching patterns, and applying SSR hydration rules to minimize load times and improve core web vitals.

Can I use these React performance patterns for automated code reviews?

These React performance patterns support automated code reviews by providing practical rules with concrete examples for common scenarios like data fetching and code-splitting, enabling consistent practices across writing and refactoring workflows.

When should I optimize re-renders versus bundle size in a React application?

Optimizing re-renders versus bundle size depends on your performance bottleneck: apply re-render optimization rules for client-side rendering bottlenecks, and use bundle size optimization patterns when JavaScript payload impacts TTI and LCP metrics.

Why does my Next.js page have poor LCP despite using server-side rendering?

Poor LCP in Next.js server-side rendering often stems from data fetching waterfalls and suboptimal SSR hydration, which can be resolved by applying the skill's server-side performance and client-side data fetching patterns.