react-patterns

Standardize React 18 and 19 component architecture, state management, and data fetching.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the complexity of modern React development by providing a standardized, idiomatic approach to component architecture, state management, and data fetching, preventing common anti-patterns and performance bottlenecks.

Core Features & Use Cases

  • Architectural Guidance: Provides clear decision trees for state location, data fetching strategies, and Server/Client component boundaries.
  • Composition Recipes: Offers battle-tested patterns for component composition, including slots, compound components, and render props.
  • Performance & Accessibility: Includes actionable rules for memoization, render optimization, and ensuring WCAG-compliant component trees.

Quick Start

Ask the react-patterns skill to review your current component structure and suggest improvements for state management or performance optimization.

Frequently Asked Questions about react-patterns

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

FAQPage Schema
How do I structure state management and data fetching in React 18 and Next.js App Router?

React 18 state management requires clear decision trees for state location and data fetching strategies. Establishing Server and Client component boundaries ensures idiomatic architecture and prevents common performance bottlenecks in complex component trees.

What's the best way to optimize React component composition for complex UI codebases?

Component composition in React is optimized using battle-tested patterns like slots, compound components, and render props. These functional programming recipes standardize complex UI codebases and maintain high-performance rendering across deeply nested trees.

How does memoization and render optimization work in modern React hooks?

Memoization in React hooks applies actionable rules to prevent unnecessary re-renders and optimize performance. Strict adherence to modern hooks discipline ensures high-performance UI codebases while maintaining functional programming principles.

When do I need WCAG-compliant component trees in React development?

WCAG-compliant component trees are needed when building accessible React applications. Applying strict architectural guidelines to component composition ensures accessibility requirements are satisfied throughout the design and implementation of complex UI structures.

Can I use these React architecture patterns for TypeScript performance reviews?

These React architecture patterns apply directly to TypeScript performance reviews. The guidelines standardize component composition, state management, and data fetching, allowing you to review complex trees and suggest improvements for high-performance, maintainable UI codebases.

Why does my React component architecture suffer from performance bottlenecks?

React performance bottlenecks often stem from anti-patterns in state management and component composition. Standardizing data fetching strategies and enforcing modern hooks discipline prevents these issues and ensures idiomatic, maintainable architecture.