vercel-react-best-practices

Apply React and Next.js performance best practices to optimize code.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/fsioni/Spottt-Mars-Rover --skill vercel-react-best-practices-fsioni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/fsioni/Spottt-Mars-Rover/tree/main/.claude/skills/vercel-react-best-practices
Command: npx skills add https://github.com/fsioni/Spottt-Mars-Rover --skill vercel-react-best-practices-fsioni

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide consolidates proven performance optimization patterns for React and Next.js, enabling teams to identify and apply fixes that reduce latency, improve load times, and enhance user experience across modern frontend apps.

Core Features & Use Cases

  • A comprehensive, categorized collection of best practices across eight areas including eliminating waterfalls, bundle size optimization, server-side performance, client-side data fetching, re-render optimization, rendering performance, JavaScript performance, and advanced patterns.
  • Actionable, real-world examples and checklists that guide writing, reviewing, and refactoring React/Next.js code for better performance and maintainability.
  • Use cases span new component development, code reviews, architecture refreshes, and performance-focused optimizations during feature delivery.

Quick Start

Review the listed rules and start applying the pattern checklist to your React/Next.js project to reduce waterfalls, shrink bundles, and improve startup time.

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 eliminate data fetching waterfalls in Next.js?

To eliminate data fetching waterfalls in Next.js, apply parallel data fetching patterns and prefetch data on the server side to reduce sequential network requests and improve overall page load latency.

What is the best way to optimize React bundle size?

The best way to optimize React bundle size is using dynamic imports for code splitting, removing unused dependencies, and applying tree-shaking techniques to shrink the final JavaScript payload.

How do I use Suspense for server-side rendering performance?

Using Suspense for server-side rendering performance involves wrapping slow asynchronous components to stream HTML progressively, allowing the page to become interactive faster while waiting for critical data.

When should I use Server Actions in React?

You should use Server Actions in React when handling secure mutations and data submissions directly on the server, avoiding the need to manually create API routes while ensuring safe client-server communication.

How do I optimize re-renders in Next.js client components?

To optimize re-renders in Next.js client components, memoize expensive calculations, pass stable callback references, and isolate reactive state to prevent unnecessary component tree updates.

Does this guide cover SSR and CSR caching strategies?

Yes, this guide covers SSR and CSR caching strategies, providing actionable patterns to properly configure server-side and client-side caching mechanisms for enhanced Next.js data fetching performance.