react-best-practices

Audit React and Next.js projects for performance bottlenecks and optimization opportunities.

2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Tai-ch0802/skills-bundle --skill react-best-practices-tai-ch0802
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/Tai-ch0802/skills-bundle/tree/main/i18n/zh-TW/nextjs-react-expert
Command: npx skills add https://github.com/Tai-ch0802/skills-bundle --skill react-best-practices-tai-ch0802

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses common performance bottlenecks in React and Next.js applications, ensuring faster load times, smoother user experiences, and more efficient development workflows.

Core Features & Use Cases

  • Performance Auditing: Identifies and suggests fixes for issues like waterfalls, large bundle sizes, and unnecessary re-renders.
  • Optimization Strategies: Provides best practices for server-side rendering, client-side data fetching, and code splitting.
  • Use Case: A developer notices their Next.js app is slow to load. They use this Skill to audit the application, identify that sequential data fetching is causing waterfalls, and apply the recommended Promise.all() pattern to parallelize requests, significantly improving initial load time.

Quick Start

Use the react-best-practices skill to audit the current project for performance bottlenecks.

Frequently Asked Questions about 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 application performance?

To optimize React and Next.js performance, analyze project code structure, dependencies, and rendering logic to identify bottlenecks like waterfalls and large bundle sizes, then apply recommended techniques such as parallelizing requests with Promise.all().

How do I fix data fetching waterfalls causing slow load times in Next.js?

Fix Next.js data fetching waterfalls by replacing sequential client-side requests with the Promise.all() pattern to parallelize data fetching, significantly improving initial load times and smoothing user experiences.

What are the best practices for reducing bundle size in React applications?

Reduce React bundle size by applying code splitting strategies and auditing dependencies to eliminate unnecessary imports, directly addressing performance bottlenecks and ensuring faster load times.

When should I use server-side rendering vs client-side data fetching for optimization?

Choose server-side rendering to improve initial load performance or client-side data fetching based on your application's specific rendering logic requirements, applying best practices derived from Vercel Engineering.

Does this approach work for JavaScript performance micro-optimizations?

Yes, this approach works for JavaScript performance micro-optimizations by providing advanced patterns and rendering optimizations to reduce unnecessary re-renders and improve overall web frontend efficiency.

Why does my React app have unnecessary re-renders and how do I audit them?

Unnecessary re-renders occur due to inefficient rendering logic; audit your React project's component structure and dependencies to identify these performance bottlenecks and apply rendering optimizations to fix them.