vercel-react-best-practices

Apply React and Next.js optimization patterns to code reviews and refactors.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/paialex/ai-skills-bank --skill vercel-react-best-practices-paialex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/paialex/ai-skills-bank/tree/main/skills/react-best-practices
Command: npx skills add https://github.com/paialex/ai-skills-bank --skill vercel-react-best-practices-paialex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Performance guidance for React and Next.js, delivering a curated set of optimization patterns to reduce bottlenecks and improve user experience in modern apps.

Core Features & Use Cases

The guide spans eight priority areas including eliminating waterfalls, bundle size optimization, server-side performance, client-side data fetching, re-render optimization, rendering performance, JavaScript performance, and advanced patterns; it is designed for code writers, reviewers, and refactors, providing actionable rules, real-world examples, and a measurable impact roadmap. Typical use cases include reviewing components, refactoring pages, and implementing data-fetching or bundling improvements in both server and client contexts.

Quick Start

Audit a codebase to identify at least three high-impact opportunities and implement concrete changes.

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 when rendering components?

Optimize React performance by applying patterns like avoiding data waterfalls, minimizing serialization, and leveraging Suspense or startTransition to improve rendering across client and server. This guides code reviews and refactoring to reduce bottlenecks.

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

Prevent data fetching waterfalls by parallelizing data requests and leveraging React.cache. This pattern minimizes serialization and reduces bottlenecks during server-side rendering and client-side fetching.

How do I reduce bundle size in a React application?

Reduce bundle size by applying targeted bundling improvements and optimization patterns. This approach identifies high-impact opportunities to eliminate unnecessary code and improve JavaScript performance across the application.

When should I use Suspense and SWR for client-side data fetching?

Use Suspense and SWR for client-side data fetching to optimize re-renders and manage loading states. These patterns help structure data fetching to avoid waterfalls and improve overall user experience.

Can I use this to refactor existing React components for server-side performance?

Yes, you can refactor existing components by applying actionable rules and real-world examples to optimize server-side performance. The process audits code to implement concrete changes across both server and client contexts.

Why does my Next.js app have slow re-renders and how do I fix it?

Slow re-renders occur from inefficient state updates and data fetching. Fix them by applying advanced patterns like startTransition, SWR, and React.cache to minimize serialization and optimize rendering performance.