react-best-practices

Featured

Comprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering. Use when optimizing React apps, reviewing performance, or refactoring components.

Web & Frontend 27,705 stars 2858 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# React Best Practices - Performance Optimization Comprehensive performance optimization guide for React and Next.js applications with 40+ rules organized by impact level. Designed to help developers eliminate performance bottlenecks and follow best practices. ## When to use this skill **Use React Best Practices when:** - Optimizing React or Next.js application performance - Reviewing code for performance improvements - Refactoring existing components for better performance - Implementing new features with performance in mind - Debugging slow rendering or loading issues - Reducing bundle size - Eliminating request waterfalls **Key areas covered:** - **Eliminating Waterfalls** (CRITICAL): Prevent sequential async operations - **Bundle Size Optimization** (CRITICAL): Reduce initial JavaScript payload - **Server-Side Performance** (HIGH): Optimize RSC and data fetching - **Client-Side Data Fetching** (MEDIUM-HIGH): Implement efficient caching - **Re-render Optimization** (MEDIUM): Minimize unnecessary re-renders - **Rendering Performance** (MEDIUM): Optimize browser rendering - **JavaScript Performance** (LOW-MEDIUM): Micro-optimizations for hot paths - **Advanced Patterns** (LOW): Specialized techniques for edge cases ## Quick reference ### Critical priorities 1. **Defer await until needed** - Move awaits into branches where they're used 2. **Use Promise.all()** - Parallelize independent async operations 3. **Avoid barrel imports** - Import directly from source files 4. ...

Details

Author
davila7
Repository
davila7/claude-code-templates
Created
11 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

335 Updated today
aiskillstore
Web & Frontend Listed

react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

33 Updated 2 days ago
tdimino
Web & Frontend Featured

react-best-practices

Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Use when writing new React components or Next.js pages, implementing data fetching (client or server-side), or reviewing code for performance issues.

39,350 Updated today
sickn33
Web & Frontend Solid

react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

162 Updated 2 weeks ago
secondsky
Web & Frontend Solid

react-best-practices

React and Next.js performance optimization guide from Vercel Engineering (70 rules in 8 categories). Use when writing, reviewing, or refactoring React/Next.js code to eliminate waterfalls, reduce bundle size, prevent re-renders, optimize Server Components, or fix performance bottlenecks. Triggers on data fetching, Promise.all, Suspense, useMemo, dynamic imports, bundle analysis, code-splitting, and rendering performance tasks.

39 Updated yesterday
laguagu