react-best-practices

Apply React and Next.js performance optimization patterns during code reviews and refactors.

Updated Oct 30, 2025
One-click install
npx skills add https://github.com/finleysg/bhmc-admin --skill react-best-practices-finleysg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/finleysg/bhmc-admin/tree/main/.claude/skills/react-best-practices
Command: npx skills add https://github.com/finleysg/bhmc-admin --skill react-best-practices-finleysg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive performance optimization guidelines for React and Next.js applications, helping developers reduce render times, improve load speeds, and deliver smoother user experiences.

Core Features & Use Cases

  • 40+ rules across 8 categories covering eliminating waterfalls, bundle size optimization, server-side performance, client-side data fetching, re-render optimization, rendering performance, JavaScript performance, and advanced patterns.
  • Reference material available in references/react-performance-guidelines.md with code examples and practical guidance.
  • Use Case: when reviewing or building React/Next.js apps, apply these patterns to optimize performance and maintainability.

Quick Start

Review the React performance guidelines in references/react-performance-guidelines.md and implement at least two patterns in your Next.js project to improve performance.

Frequently Asked Questions about react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for React and Next.js performance optimization?

React and Next.js performance optimization best practices include eliminating data waterfalls, reducing bundle size, and optimizing server-side rendering. These guidelines span eight categories with concrete examples covering both client and server workflows.

How do I reduce bundle size and improve rendering speed in a Next.js app?

To reduce bundle size and improve rendering speed in Next.js, apply practical patterns for efficient data fetching and server-side performance. Implementing rules from these categories during component building or refactoring yields faster load speeds.

Can I use these React performance guidelines during code reviews?

Yes, you can use these React performance guidelines during code reviews. They provide practical patterns and references that enforce efficient rendering, reduced bundle size, and optimal data fetching across client and server components.

Do I need proprietary tooling to optimize React and Next.js app performance?

No, you do not need proprietary tooling to optimize React and Next.js app performance. These guidelines require only standard React and Next.js workflows, enforcing practical patterns without any additional specialized software dependencies.

What specific categories do React performance guidelines cover?

React performance guidelines cover eight categories: eliminating waterfalls, bundle size optimization, server-side performance, client-side data fetching, re-render optimization, rendering performance, JavaScript performance, and advanced patterns.

When should I not use server-side rendering for data fetching in React?

Server-side rendering may not be optimal when it introduces data fetching waterfalls. The guidelines address this by providing patterns for client-side data fetching and advanced rendering techniques to balance server and client performance.