react-patterns

Detect React performance and composition issues with prioritized code-level fixes.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/DITEKmax/rutcampustrack --skill react-patterns-ditekmax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-patterns
Source: https://github.com/DITEKmax/rutcampustrack/tree/main/.agents/skills/react-patterns
Command: npx skills add https://github.com/DITEKmax/rutcampustrack --skill react-patterns-ditekmax

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers find and fix common performance and composition problems in React 19 apps, removing waterfalls, reducing bundle size, and preventing unnecessary re-renders so components behave responsively in production.

Core Features & Use Cases

  • Prioritized checklist for audits that ranks issues by impact (CRITICAL → MEDIUM) so reviewers fix the most harmful problems first.
  • Pattern-driven fixes that cover waterfalls, bundle-splitting, composition over boolean props, render prevention, and React 19-specific APIs.
  • Context-specific guidance for Vite and Cloudflare Workers projects, including dependency dedupe, env handling, and edge constraints.
  • Use Case: Run during PR reviews or refactors to convert a slow component into a composable, code-split, and memoized implementation.

Quick Start

Review the file src/components/Button.tsx for waterfalls, bundle bloat, and re-render causes and list prioritized, code-level fixes by impact.

Frequently Asked Questions about react-patterns

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

FAQPage Schema
How do I fix unnecessary React 19 re-renders and component composition issues?

To fix React 19 re-renders and composition issues, analyze component code to identify waterfalls, bundle bloat, and anti-patterns. Apply concrete remediations like memoization and composition over boolean props to ensure components behave responsively in production.

What is the best way to audit a React component for performance bottlenecks?

The best way to audit React performance bottlenecks is generating a prioritized checklist that ranks issues by impact from CRITICAL to MEDIUM. This approach ranks the most harmful problems first, suggesting pattern-driven fixes for waterfalls, bundle-splitting, and render prevention.

How do I reduce bundle bloat in a Vite and React 19 project?

Reduce Vite and React 19 bundle bloat by detecting bundle-splitting opportunities and composition anti-patterns in component code. Apply context-specific remediation including dependency dedupe and env handling to prevent waterfalls and optimize bundle size.

Does this React performance optimization approach work with Cloudflare Workers?

Yes, React performance optimization applies to React 19 projects using Vite and Cloudflare Workers. It provides context-specific guidance for edge constraints, dependency dedupe, and environment handling specific to the Cloudflare Workers deployment context.

Can I use code review to find React 19 waterfalls and anti-patterns?

Yes, you can use code review to find React 19 waterfalls and anti-patterns. Run analysis during PR reviews or refactors to convert slow components into composable, code-split, and memoized implementations by identifying and prescribing fixes for composition issues.

When should I not use boolean props for React component composition?

Avoid boolean props for React component composition when they cause unnecessary re-renders and bundle bloat. Instead, apply composition over boolean props and React 19-specific APIs to prevent render issues and ensure responsive component behavior.