vercel-react-best-practices

Apply React and Next.js performance best practices to component design and architecture.

41|14|Updated May 16, 2017
One-click install
npx skills add https://github.com/uzh-bf/klicker-uzh --skill vercel-react-best-practices-uzh-bf
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/uzh-bf/klicker-uzh/tree/main/.github/skills/vercel-react-best-practices
Command: npx skills add https://github.com/uzh-bf/klicker-uzh --skill vercel-react-best-practices-uzh-bf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a curated set of React and Next.js performance best practices from Vercel Engineering to help teams deliver faster, more reliable web apps.

Core Features & Use Cases

  • Guidance for writing and reviewing React components and Next.js pages with emphasis on performance, bundle optimization, and efficient data fetching.
  • Practical patterns for server/client boundaries, caching, and code-splitting to reduce load times and improve user experience.
  • Use cases include optimizing initial load, reducing bundle size, and streamlining performance-focused code reviews.

Quick Start

Use this skill as a reference during development and reviews to apply the recommended performance patterns across your React/Next.js codebase.

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 for initial page load?▼

To optimize React and Next.js performance, apply patterns like code-splitting, Suspense boundaries, and efficient data fetching to reduce bundle size and improve initial load times.

What are the best practices for defining server and client boundaries in Next.js?▼

Defining server/client boundaries in Next.js involves strategically separating server-only data fetching from client-side interactivity to minimize JavaScript sent to the browser and streamline performance-focused code reviews.

How do I reduce bundle size in a modern React application?▼

Reduce React bundle size by applying code-splitting techniques and optimizing component architecture, which ensures only necessary code is loaded to improve overall web app reliability and speed.

Can I use these Vercel best practices to guide automated code generation and refactoring?▼

Yes, these Vercel best practices define actionable requirements and patterns for component design and caching that can directly guide automated code generation, refactors, and performance reviews.

When should I use Suspense for data fetching in Next.js pages?▼

Use Suspense for data fetching in Next.js pages when you need to optimize initial load times by streaming server-rendered content, allowing faster user experiences while waiting for asynchronous data.