vercel-react-best-practices

Identify and fix performance bottlenecks in React/Next.js apps using defined best practices.

950|109|Updated Oct 22, 2020
One-click install
npx skills add https://github.com/sanity-io/next-sanity --skill vercel-react-best-practices-sanity-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/sanity-io/next-sanity/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/sanity-io/next-sanity --skill vercel-react-best-practices-sanity-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This collection consolidates production-grade performance guidelines for React and Next.js, helping teams prevent common bottlenecks and ship faster, more reliable apps.

Core Features & Use Cases

  • Centralizes high-impact performance Rules across components, data-fetching layers, and routing boundaries to guide refactors, reviews, and automated code-generation.
  • Provides concrete patterns for server actions, API routes, Suspense, parallel data fetching, and bundle optimizations to improve TTI, LCP, and overall UX.
  • Suitable for code reviews, architecture decisions, and engineering onboarding to enforce consistent performance discipline across projects.

Quick Start

Read and apply the guidelines to identify bottlenecks in your codebase and implement targeted refactors following the rules.

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 fix React and Next.js performance bottlenecks in my app?

Prevent React performance bottlenecks by consolidating production-grade guidelines that enforce rules for server actions, parallel data fetching, and per-request caching across your components and pages.

What is the best way to use Suspense and server actions for data fetching in Next.js?

The best way to use Suspense and server actions is to follow concrete patterns that enforce security and reliability while improving TTI and LCP through parallel data fetching and per-request caching.

How do I optimize bundle size and reduce render waterfalls in React?

Optimize bundle size and reduce render waterfalls by applying concrete rules across your components and data flows, targeting scenarios across pages and data-fetching layers to improve overall UX.

Can I use these React best practices for code reviews and architecture decisions?

You can use these React best practices for code reviews, architecture decisions, and engineering onboarding to enforce consistent performance discipline and maintainable refactors across projects.

Why does my Next.js app have slow LCP and TTI metrics?

Slow LCP and TTI metrics often result from data waterfalls and unoptimized bundles; applying targeted best practices for server actions, Suspense, and parallel data fetching improves these rendering times.