vercel-react-best-practices

Improves React/Next.js performance through prioritized code and design reviews.

5.0k|548|Updated May 14, 2025
One-click install
npx skills add https://github.com/dtyq/magic --skill vercel-react-best-practices-dtyq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/dtyq/magic/tree/main/frontend/magic-web/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/dtyq/magic --skill vercel-react-best-practices-dtyq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js projects often struggle with performance regressions. This skill provides a curated set of proven guidelines and patterns to optimize rendering, data fetching, and bundle size across teams.

Core Features & Use Cases

  • 57 rules across 8 categories, prioritized by impact
  • Guides for production-grade refactors and automated code-generation
  • Use cases: during component development, code reviews, and performance reviews

Quick Start

Review the guidelines and apply the top-priority rules when building or refactoring React/Next.js code to boost performance.

Frequently Asked Questions about vercel-react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices to optimize React rendering performance?

React rendering performance best practices involve applying prioritized rules across client and server rendering, data fetching, and bundle optimization to resolve runtime efficiency regressions during component development and refactoring tasks.

How do I reduce Next.js bundle size during code reviews?

Reduce Next.js bundle size by enforcing bundle optimization rules and performance patterns during code reviews, identifying heavy dependencies and applying production-grade refactors to minimize runtime regressions across the project.

When do I need React performance optimization for data fetching?

React performance optimization for data fetching is needed when runtime efficiency drops during client or server rendering, requiring prioritized refactoring patterns to prevent performance regressions in production-grade applications.

Does this approach work for both client and server rendering in Next.js?

Yes, the optimization guidelines explicitly support both client and server rendering in Next.js, applying performance rules across data fetching and bundling tasks to improve overall runtime efficiency.

What's the best way to refactor React components for performance?

The best way to refactor React components for performance is applying a curated set of 57 prioritized rules across 8 categories, guiding production-grade refactors for rendering, data fetching, and bundle size optimization.