vercel-react-best-practices

Identify and fix React and Next.js rendering, data-fetching, and bundle bottlenecks.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/alexzhang1030/platform-demo --skill vercel-react-best-practices-alexzhang1030
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/alexzhang1030/platform-demo/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/alexzhang1030/platform-demo --skill vercel-react-best-practices-alexzhang1030

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams avoid common React and Next.js performance mistakes that slow down apps, increase bundle size, and create unnecessary re-renders or data-fetching waterfalls. It turns a large body of best practices into practical guidance for writing, reviewing, and refactoring production code.

Core Features & Use Cases

  • Performance Review Guidance: Identifies waterfalls, heavy imports, unnecessary serialization, and render bottlenecks.
  • React and Next.js Refactoring Help: Recommends safer patterns for server actions, server components, Suspense, memoization, and event handling.
  • Real-World Use Case: Use it when a page feels slow, a component re-renders too often, or a route needs better loading behavior and smaller client-side payloads.

Quick Start

Ask the skill to review your React or Next.js code and suggest the highest-impact performance fixes first.

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 fix React component re-rendering and data-fetching waterfalls?

To fix React component re-rendering and data-fetching waterfalls, review your code for heavy imports and unnecessary prop serialization. Refactoring to use parallel data fetching, Suspense boundaries, and proper memoization patterns helps eliminate these render bottlenecks and reduces serialized payload sizes.

What's the best way to reduce Next.js bundle size and optimize server components?

The best way to reduce Next.js bundle size and optimize server components is to enforce smaller serialized props and hydration-safe patterns. Moving heavy logic to server actions and ensuring correct component boundaries minimizes client-side payloads and improves overall route performance.

Why does my Next.js page feel slow and how can I improve its loading behavior?

Your Next.js page feels slow due to unnecessary serialization, heavy client-side imports, and data-fetching waterfalls. You can improve loading behavior by applying Suspense patterns, shifting interactions to server actions, and prioritizing smaller client-side payloads during refactoring.

Can I use this approach for both new feature development and existing code review?

Yes, you can use this performance optimization approach for both new feature development and existing code review. It provides practical guidance for identifying bottlenecks and recommending safer patterns for server components, server actions, and client-side interactions across your codebase.

How do I ensure security and correctness when refactoring React server actions?

To ensure security and correctness when refactoring React server actions, apply safe server-side security checks and preserve functional correctness. Enforcing parallel work, hydration-safe patterns, and smaller serialized props maintains application stability while improving performance.