react-best-practices

Apply React performance patterns to reduce re-renders and optimize load time.

1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/guan404ming/gmccc --skill react-best-practices-guan404ming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/guan404ming/gmccc/tree/main/skills/dev/react-best-practices
Command: npx skills add https://github.com/guan404ming/gmccc --skill react-best-practices-guan404ming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps engineers reduce wasteful renders, large bundle sizes, and slow startup times in Airflow's React UI by codifying proven performance patterns.

Core Features & Use Cases

  • Guidelines for reducing re-renders, memoization with useMemo and React.memo, and selective rendering.
  • Strategies for code-splitting, suspense boundaries, and avoiding barrel imports.
  • Use case: refactor a slow dashboard to improve frame rate and load time.

Quick Start

Audit existing components and apply the rules to reduce re-renders, improve load time, and trim bundle size.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I reduce unnecessary re-renders in React components?

Reduce React re-renders by applying memoization patterns with useMemo and React.memo, using explicit conditional rendering, and maintaining immutable data flows during component development and refactoring.

What is the best way to optimize initial load time in a React application?

Optimize React initial load time by applying code-splitting strategies, implementing suspense boundaries, and avoiding barrel imports to trim bundle size and improve frame rate.

When should I use suspense boundaries for React performance optimization?

Use suspense boundaries during React performance optimization to manage code-splitting and improve initial load times. They are applied during component refactoring to selectively render UI sections.

How do I audit a slow React dashboard for performance improvements?

Audit a slow React dashboard by reviewing existing components for wasteful renders and large bundle sizes, then apply best-practice performance patterns to improve frame rate and load time.

Does using React memoization with useMemo and React.memo always prevent re-renders?

React memoization with useMemo and React.memo reduces wasteful renders but requires maintaining immutable data flows and explicit conditional rendering to effectively optimize performance during component development.

Why does avoiding barrel imports improve React performance?

Avoiding barrel imports improves React performance by preventing large bundle sizes and slow startup times. This code-splitting strategy trims the bundle and optimizes initial load during refactoring.