vercel-react-best-practices

Optimize React/Next.js applications using prioritized performance patterns.

2|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/mhagrelius/dotfiles --skill vercel-react-best-practices-mhagrelius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/mhagrelius/dotfiles/tree/main/.claude/skills/vercel-react-best-practices
Command: npx skills add https://github.com/mhagrelius/dotfiles --skill vercel-react-best-practices-mhagrelius

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Consolidates proven performance optimization patterns for React and Next.js to help teams reduce render latency, improve bundle size, and prevent server-side waterfalls across projects.

Core Features & Use Cases

  • Priority-based categories across Eliminating Waterfalls, Bundle Size, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, and Advanced Patterns.
  • Actionable techniques such as deferring awaits, parallelizing independent fetches with Promise.all, strategic Suspense boundaries, dynamic imports, preloading, and per-request/non-blocking server patterns.
  • Real-world scenarios including React components, Next.js pages, API routes, and Server Actions to guide safe refactoring and scalable performance improvements.

Quick Start

Audit a React/Next.js project and implement prioritized performance patterns from this guide.

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 server-side rendering?

Optimize React and Next.js performance by applying priority-based rules across server-side rendering, SSR/CSR boundaries, and per-request server patterns. This prevents server-side waterfalls and reduces render latency.

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

Eliminate data fetching waterfalls by deferring awaits and parallelizing independent fetches using Promise.all. This approach prevents sequential blocking and improves server-side rendering performance.

How do I reduce bundle size in Next.js using dynamic imports?

Reduce bundle size by leveraging dynamic imports and preloading techniques. These patterns split JavaScript payloads strategically, minimizing client-side download overhead and rendering delays.

Can I use Suspense boundaries to improve rendering performance in React components?

Use Suspense boundaries to strategically isolate loading states within React components. This prevents entire page blocking and optimizes client-side rendering performance during data fetching.

Does this approach work for refactoring Next.js API routes and Server Actions?

Apply these performance patterns directly to Next.js API routes and Server Actions. The guide provides actionable techniques for safe refactoring and scalable improvements across these specific ecosystems.

How do I prevent unnecessary re-renders in React components?

Prevent unnecessary re-renders by applying targeted optimization techniques within the rendering performance category. This reduces client-side compute overhead and improves overall application responsiveness.