vercel-react-best-practices

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

6|Updated Mar 24, 2019
One-click install
npx skills add https://github.com/rafifos/dotfiles --skill vercel-react-best-practices-rafifos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/rafifos/dotfiles/tree/main/dot_agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/rafifos/dotfiles --skill vercel-react-best-practices-rafifos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js projects often suffer from performance regressions due to suboptimal patterns; this Skill provides a curated set of proven optimization patterns to speed up rendering, data fetching, and bundles.

Core Features & Use Cases

  • Patterns across 8 priority areas (async, bundle, server, client, rerender, rendering, JS, advanced) to guide improvements in real-world projects.
  • Concrete examples and guidance for working with React components, Next.js pages, data fetching, and server actions to reduce waterfalls, reduce bundle size, and accelerate TTI.
  • Suitable for engineers reviewing, refactoring, or authoring performance-conscious React/Next.js code.

Quick Start

Review your codebase and apply the 8-priority performance patterns to improve React/Next.js efficiency.

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

Optimize React and Next.js rendering by applying proven patterns across 8 priority areas including async, server, client, and rendering to reduce waterfalls and accelerate TTI. These patterns guide code refactoring and generation for real-world projects.

What are the best ways to reduce bundle size in a Next.js application?

Reducing bundle size in Next.js involves applying specific optimization patterns from the bundle and JS priority categories. These patterns provide concrete examples and guidance for refactoring components and pages to minimize unnecessary JavaScript payload.

How do Next.js server components affect rendering performance and data fetching?

Next.js server components improve rendering performance by executing on the server to reduce client-side JavaScript and data fetching waterfalls. The Skill guides you through applying server and client component patterns to optimize real-world projects.

Can I use these React performance patterns to refactor existing components?

You can use these React performance patterns to refactor existing components, Next.js pages, and server actions. The Skill enforces patterns across 8 priority categories to guide automated refactoring and code generation for performance-conscious code.

Why does my React application suffer from unnecessary rerenders and how do I fix it?

React applications suffer from unnecessary rerenders due to suboptimal patterns, which you can fix by applying the rerender priority optimization patterns. These patterns guide refactoring components to prevent performance regressions and accelerate TTI.