vercel-react-best-practices

Apply 57 performance best practices to React and Next.js codebases.

5.5k|665|Updated Aug 5, 2024
One-click install
npx skills add https://github.com/yournextstore/yournextstore --skill vercel-react-best-practices-yournextstore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/yournextstore/yournextstore/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/yournextstore/yournextstore --skill vercel-react-best-practices-yournextstore

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured, authority-driven set of performance guidelines to help teams build faster React and Next.js applications by applying battle-tested rules across rendering, data fetching, bundling, and server-side concerns.

Core Features & Use Cases

  • Centralized performance best practices across the React/Next.js stack, covering waterfalls elimination, bundle optimization, server actions security, client-side data fetching, and rendering efficiency.
  • Practical, category-based guidance with concrete patterns and safe defaults for production-grade apps; suitable for code reviews, refactoring, and onboarding.
  • Real-world applicability with triaged rules to reduce latency, improve TTI/LCP, and minimize bundle sizes in typical e-commerce and content platforms.

Quick Start

Review your codebase and implement the 57 rules across categories to optimize 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 improve React and Next.js performance for production apps?

Eliminate data fetching waterfalls in Next.js by applying category-based performance rules that guide fetching strategies, ensuring safe defaults for client-side data fetching and server-side rendering efficiency.

What are the best practices for securing Next.js server actions?

Best practices for securing Next.js server actions involve enforcing clear safety considerations and validating usage against structured rules, ensuring production-grade apps maintain security while optimizing runtime performance.

How do I optimize bundle size and rendering efficiency in Next.js?

Optimize Next.js bundle size and rendering efficiency by implementing triaged rules that target bundling optimizations and rendering patterns, minimizing bundle sizes to improve TTI and LCP metrics.

Does this React performance guidance apply to e-commerce and content platforms?

Yes, this React performance guidance applies to e-commerce and content platforms, offering real-world applicability with triaged rules designed to reduce latency, improve TTI/LCP, and minimize bundle sizes.

When should I refactor a Next.js codebase for web performance optimization?

Refactor a Next.js codebase for web performance optimization during code reviews or onboarding, applying battle-tested rules across rendering and server-side concerns to achieve faster runtime efficiency and safer defaults.