vercel-react-best-practices

Optimize React and Next.js code with performance rules and examples.

Updated May 21, 2025
One-click install
npx skills add https://github.com/borjamrd/opositaplace-app --skill vercel-react-best-practices-borjamrd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/borjamrd/opositaplace-app/tree/main/.agent/skills/react-best-practices
Command: npx skills add https://github.com/borjamrd/opositaplace-app --skill vercel-react-best-practices-borjamrd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses performance bottlenecks in React and Next.js applications, ensuring code is efficient, fast, and optimized for both development and production.

Core Features & Use Cases

  • Performance Auditing: Analyzes code against best practices for rendering, bundle size, and data fetching.
  • Automated Refactoring: Provides specific code examples and guidance to fix performance issues.
  • Use Case: When developing a new feature in a Next.js app, use this Skill to review your component code and ensure it adheres to Vercel's performance guidelines, preventing potential slowdowns before they impact users.

Quick Start

Apply the vercel-react-best-practices skill to optimize the provided React component code for 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 bottlenecks?

To optimize React and Next.js performance, apply comprehensive guidelines covering waterfall elimination, bundle size reduction, and re-render optimization. These rules provide correct code examples and impact metrics for automated refactoring.

What is the best way to reduce bundle size in Next.js applications?

The best way to reduce bundle size in Next.js is applying targeted optimization rules that eliminate unnecessary code. These rules provide incorrect versus correct code examples to guide automated refactoring and ensure efficient production builds.

How do I eliminate data fetching waterfalls in React components?

To eliminate data fetching waterfalls in React, implement server-side and client-side fetching strategies defined by specific optimization rules. These patterns provide code examples to resolve sequential requests and improve loading performance.

Can I use these Next.js optimization rules for automated code refactoring?

Yes, you can use these Next.js optimization rules for automated refactoring. The guidelines provide specific incorrect versus correct code examples and impact metrics designed for AI agents and LLMs to execute performance improvements.

How do I prevent unnecessary re-renders in React applications?

To prevent unnecessary re-renders in React, apply specific re-render optimization rules that identify inefficient component patterns. The guidelines contrast incorrect and correct code implementations to ensure efficient rendering performance.

Does this Skill provide examples for server-side data fetching strategies?

Yes, this Skill provides examples for server-side data fetching strategies. It includes detailed rules with incorrect versus correct code examples to optimize data retrieval and eliminate performance bottlenecks in Next.js applications.