vercel-react-best-practices

Apply React and Next.js performance rules to optimize rendering, data fetching, and bundle size.

52|22|Updated Nov 9, 2022
One-click install
npx skills add https://github.com/satsigner/satsigner --skill vercel-react-best-practices-satsigner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/satsigner/satsigner/tree/main/.cursor/skills/vercel-react-best-practices
Command: npx skills add https://github.com/satsigner/satsigner --skill vercel-react-best-practices-satsigner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js apps often suffer from performance issues due to inefficient rendering, data fetching, and large bundles. This skill consolidates best practices to identify and address these bottlenecks.

Core Features & Use Cases

  • 57 rules across 8 categories prioritized by impact to guide automated refactoring and design decisions.
  • Use during component/page development, code review, and performance audits to improve TTI, LCP, and UX.
  • Real-world example: refactor a high-traffic Next.js page to reduce bundle size and optimize data fetching.

Quick Start

Start by auditing a React/Next.js page or component and apply the 8-category guidelines to improve performance.

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 rendering and data fetching?

You can optimize React and Next.js performance by applying a priority-based rule set across 8 categories to refactor rendering, data fetching, and bundle size. This automated refactoring directly improves TTI, LCP, and overall UX.

What are the best practices for reducing bundle size in a Next.js app?

Best practices for reducing bundle size involve applying 57 prioritized rules during component and page development to guide code generation. Refactoring high-traffic Next.js pages with these guidelines actively minimizes bundle bloat and improves loading metrics.

Can I use this approach to audit server components and server actions in React?

Yes, you can use this approach to audit server components, server actions, and client interactions across typical React apps. The rule set scope explicitly covers these architectural patterns to ensure optimal data fetching and rendering performance.

When do I need to apply React performance best practices for code review?

You need to apply React performance best practices during code review and performance audits when you observe inefficient rendering or large bundles. Using the 8-category guidelines during these stages helps identify bottlenecks and validate design decisions.

Does this refactoring method work with both React and Next.js applications?

Yes, this refactoring method works with both React and Next.js applications, enforcing safety checks to guide automated code generation across pages, components, and server interactions. It consolidates best practices to address performance issues in both frameworks.

Why does my Next.js page have a slow LCP and how can I fix it?

Your Next.js page may have a slow LCP due to inefficient rendering and data fetching bottlenecks. You can fix it by auditing the page and applying the 8-category performance guidelines to refactor data fetching and reduce bundle size.