vercel-react-best-practices

Apply React and Next.js performance optimization rules to codebases.

Updated May 14, 2025
One-click install
npx skills add https://github.com/Mikisbell/freecloud --skill vercel-react-best-practices-mikisbell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/Mikisbell/freecloud/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/Mikisbell/freecloud --skill vercel-react-best-practices-mikisbell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines to optimize the performance of React and Next.js applications, addressing issues like slow load times, bundle size bloat, and inefficient rendering.

Core Features & Use Cases

  • Performance Optimization: Apply best practices for data fetching, bundle size reduction, and rendering efficiency.
  • Code Refactoring: Improve existing React/Next.js codebases for better performance and maintainability.
  • Use Case: When developing a new Next.js feature, consult this Skill to ensure data fetching is parallelized, components are memoized correctly, and the initial bundle size is minimized for faster TTI.

Quick Start

Apply the vercel-react-best-practices skill to refactor the provided React component for optimal 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 application performance?

To optimize React and Next.js performance, apply structured rules covering bundle size reduction, server-side efficiency, and re-render elimination to refactor codebases for peak efficiency and faster load times.

What causes slow load times and bundle size bloat in Next.js?

Slow load times and bundle size bloat in Next.js are caused by inefficient data fetching waterfalls and unoptimized rendering. Parallelizing data fetches and minimizing initial bundles improve Time to Interactive.

How do I eliminate data fetching waterfalls in React components?

To eliminate data fetching waterfalls in React components, parallelize client-side data fetching and apply advanced patterns to structure requests efficiently, avoiding sequential waits that block rendering.

What is the best way to refactor React code for rendering performance?

The best way to refactor React code for rendering performance is applying correct component memoization and re-render optimization rules to prevent unnecessary UI updates and reduce JavaScript execution overhead.

Do I need Next.js to apply these React performance optimization rules?

You do not need Next.js to apply all rules, as the guidelines cover core React performance like JavaScript execution and re-render optimization, but server-side performance sections specifically target Next.js environments.

When should I focus on server-side performance versus client-side data fetching?

Focus on server-side performance to reduce initial bundle size and improve load times, while optimizing client-side data fetching to eliminate waterfalls and re-render issues after hydration.