vercel-react-best-practices

Refactor React and Next.js code for performance patterns.

Updated May 18, 2026
One-click install
npx skills add https://github.com/yogaprasetya22/mmorpg --skill vercel-react-best-practices-yogaprasetya22
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/yogaprasetya22/mmorpg/tree/main/frontend/.agents/skills/react-best-practices
Command: npx skills add https://github.com/yogaprasetya22/mmorpg --skill vercel-react-best-practices-yogaprasetya22

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams prevent common React and Next.js performance regressions by providing proven patterns for eliminating waterfalls, shrinking bundles, optimizing server rendering, and reducing unnecessary re-renders.

Core Features & Use Cases

  • Waterfall elimination: apply parallelization and streaming-friendly patterns to speed up data loading paths.
  • Bundle size optimization: avoid expensive barrel imports, defer non-critical third-party code, and use dynamic imports and preloading for better TTI/LCP.
  • Render and RSC/SSR efficiency: reduce serialization payloads, avoid shared request state, and optimize re-renders with derived-state and transition patterns.

Use it when you are working on React components, Next.js pages, client/server data fetching flows, or when reviewing code for performance improvements and automated refactoring opportunities in agent-led workflows.

Quick Start

Use the vercel-react-best-practices skill to refactor the relevant React and Next.js code for faster load times and fewer unnecessary renders.

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 component performance for faster page loads?

Optimize React and Next.js performance by applying parallelization for data fetching, using dynamic imports to shrink bundle size, and minimizing RSC serialization to improve UI responsiveness and page load times.

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

Eliminate Next.js data fetching waterfalls by applying parallelization and streaming-friendly patterns to data loading paths, which speeds up asynchronous work and prevents sequential request blocking in server components.

How do I reduce unnecessary re-renders in React using transitions and derived state?

Reduce unnecessary React re-renders by correctly managing state and derived data, leveraging transition patterns to defer expensive updates, and avoiding shared request state that triggers cascading component renders.

How can I reduce bundle size when importing third-party libraries in Next.js?

Reduce Next.js bundle size by avoiding expensive barrel imports, deferring non-critical third-party code, and using dynamic imports and preloading strategies to achieve better Time to Interactive and Largest Contentful Paint.

How do I minimize React Server Component serialization payloads during SSR?

Minimize React Server Component serialization payloads during SSR by reducing the size of data passed between server and client boundaries, avoiding shared request state, and optimizing the structure of rendered output.

Can I use automated code review to find React performance bottlenecks in agent workflows?

Yes, you can use this rule-driven guidance within agent-led workflows to review code for performance improvements, automatically identifying refactoring opportunities for bundle-size work and render inefficiencies.