react-patterns

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

3|Updated Jul 1, 2026
One-click install
npx skills add https://github.com/KeyValueSoftwareSystems/maestro --skill react-patterns-keyvaluesoftwaresystems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-patterns
Source: https://github.com/KeyValueSoftwareSystems/maestro/tree/main/skills/stacks/react/react-patterns
Command: npx skills add https://github.com/KeyValueSoftwareSystems/maestro --skill react-patterns-keyvaluesoftwaresystems

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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, server/client component boundaries, and composition strategies.
  • Modern React Implementation: Offers best practices for React 19 features like form actions and useOptimistic, alongside established patterns for Suspense and Error Boundaries.
  • Performance Optimization: Includes rules for memoization, avoiding render cascades, and efficient list rendering to ensure high-performance UI.

Quick Start

Ask the react-patterns skill to review your current component file for idiomatic hook usage and server-client boundary compliance.

Frequently Asked Questions about react-patterns

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

FAQPage Schema
What are the best practices for separating server and client logic in React 19?

Separating server and client logic in React 19 requires clear architectural decision trees for component boundaries, ensuring clean isolation of server-side data fetching from client-side state management within complex application trees.

How do I optimize React performance and avoid render cascades in complex component trees?

To optimize React performance and avoid render cascades, apply specific rules for memoization and efficient list rendering. These patterns prevent common performance bottlenecks in complex function component architectures.

When should I use React 19 form actions and useOptimistic hooks?

React 19 form actions and useOptimistic hooks should be used when implementing modern UI updates that require immediate user feedback. They provide an idiomatic approach to managing form state and optimistic UI rendering.

How do I review my React code for idiomatic hook usage and anti-patterns?

Reviewing React code for idiomatic hook usage involves checking function components against standardized architectural patterns. This process identifies common anti-patterns and ensures compliance with accessibility-first development requirements.

Does this React architectural guidance support accessibility-first development?

Yes, this React architectural guidance satisfies requirements for accessibility-first development. It integrates accessibility standards directly into the component composition and state management decision trees.

What is the best way to manage state location in complex React applications?

The best way to manage state location in complex React applications is using standardized architectural decision trees. This approach prevents performance bottlenecks by cleanly separating server and client logic.