vercel-react-best-practices

Apply 57 performance rules to optimize React and Next.js applications.

7|2|Updated May 11, 2023
One-click install
npx skills add https://github.com/vitalyiegorov/suuudokuuu --skill vercel-react-best-practices-vitalyiegorov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/vitalyiegorov/suuudokuuu/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/vitalyiegorov/suuudokuuu --skill vercel-react-best-practices-vitalyiegorov

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive set of rules and guidelines to optimize the performance of React and Next.js applications, addressing critical areas like bundle size, server-side rendering, and re-render efficiency.

Core Features & Use Cases

  • Performance Optimization: Apply best practices for eliminating waterfalls, reducing bundle size, and improving server-side and client-side data fetching.
  • Code Refactoring: Identify and refactor code to adhere to Vercel's performance standards.
  • Use Case: When developing a new Next.js feature, consult this Skill to ensure all data fetching is parallelized, components are optimized for re-renders, and the initial bundle size is minimized.

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 a comprehensive set of 57 rules covering bundle size reduction, server-side rendering improvements, and re-render efficiency to eliminate critical performance bottlenecks.

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

Eliminating data fetching waterfalls in Next.js requires parallelizing server-side and client-side data fetching processes, ensuring optimal performance by adhering to structured codebase refactoring standards.

How do I reduce the initial bundle size of my React application?

Reduce your React application's initial bundle size by applying targeted optimization rules that minimize unnecessary imports and streamline server-side rendering outputs for faster client-side loading.

Can I use these React performance standards to refactor existing codebases?

Yes, you can refactor existing codebases by applying these Vercel performance standards to identify bottlenecks and restructure components, ensuring optimal server-side rendering and re-render efficiency.

Why does my Next.js component re-render so frequently?

Frequent Next.js component re-renders occur due to unoptimized state management and data passing; applying targeted re-render efficiency rules helps identify and resolve these performance bottlenecks.

When do I need server-side rendering optimization for my React app?

You need server-side rendering optimization for your React app when addressing critical performance bottlenecks like slow initial loads, ensuring data fetching is parallelized and initial bundle size is minimized.