vercel-react-best-practices

Apply React and Next.js performance best practices during development and code reviews.

115|6|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/jewbetcha/opentrace --skill vercel-react-best-practices-jewbetcha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/jewbetcha/opentrace/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/jewbetcha/opentrace --skill vercel-react-best-practices-jewbetcha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a consolidated, authoritative set of performance best practices for React and Next.js, helping teams optimize user experience and efficiency by preventing common performance pitfalls.

Core Features & Use Cases

  • Comprehensive guidance across eliminating waterfalls, bundle size optimization, server-side performance, client-side data fetching, re-render optimization, rendering performance, JavaScript performance, and advanced patterns.
  • Use during component/page creation, code reviews, refactors, and performance audits to ensure patterns align with enterprise-grade performance goals.
  • Real-world scenario: when refactoring a Next.js app, apply Suspense boundaries, dynamic imports, and avoid barrel imports to improve initial paint and responsiveness.

Quick Start

Apply these guidelines at the start of a React/Next.js task and throughout development and reviews to ensure performance patterns are followed.

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 during code refactoring?

To optimize React and Next.js performance during refactoring, apply curated best practices like avoiding data fetching waterfalls, reducing bundle size, and enabling strategic Suspense boundaries to improve TTI and LCP.

What are the best practices for reducing bundle size in Next.js applications?

Best practices for reducing Next.js bundle size include using dynamic imports, avoiding barrel imports, and applying strategic Suspense boundaries to improve initial paint and responsiveness.

How does strategic Suspense improve React component rendering performance?

Strategic Suspense improves React rendering performance by establishing boundaries that prevent waterfall data fetching, enabling faster initial paint and better responsiveness while data loads asynchronously.

Can I use these performance guidelines for server components and client-side data fetching?

Yes, these performance guidelines apply directly to React server components, Next.js pages, and client-side data fetching patterns to prevent common performance pitfalls during development and reviews.

Why does avoiding waterfalls improve Next.js server-side performance?

Avoiding waterfalls improves Next.js server-side performance by preventing sequential data fetching blocks, which reduces load times and directly enhances core web vitals like LCP.

When should I use dynamic imports instead of static imports in React?

Use dynamic imports in React when you need to reduce initial bundle size and improve Time to Interactive, especially for heavy components that delay first paint during page load.