react-patterns

Guide React development with modern patterns for component design, hooks, state management, and TypeScript.

1|Updated Sep 25, 2025
One-click install
npx skills add https://github.com/arroschaves/brandaocontador-site --skill react-patterns-arroschaves
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-patterns
Source: https://github.com/arroschaves/brandaocontador-site/tree/main/.agent/skills/react-patterns
Command: npx skills add https://github.com/arroschaves/brandaocontador-site --skill react-patterns-arroschaves

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to modern React development patterns, helping developers build more robust, performant, and maintainable applications.

Core Features & Use Cases

  • Component Design: Learn principles for creating well-structured components (Server, Client, Presentational, Container).
  • Hook Patterns: Understand when and how to extract custom hooks for reusable logic.
  • State Management: Guidance on choosing the right state management solution based on complexity.
  • Performance Optimization: Strategies to identify and fix performance bottlenecks.
  • TypeScript Best Practices: Typing for props, events, and common React elements.

Quick Start

Explain the concept of compound components in React.

Frequently Asked Questions about react-patterns

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

FAQPage Schema
What are compound components in React and how do they work?

Compound components in React are a pattern where components are composed together to share implicit state while maintaining flexible, readable component design structures.

How do I choose the right state management solution for my React application?

Choosing the right state management solution requires evaluating your application's complexity and specific needs, balancing local component state against global stores for optimal maintainability.

When should I extract custom hooks for reusable logic in React?

You should extract custom hooks for reusable logic when component logic becomes complex or needs to be shared across multiple components, improving overall code quality and maintainability.

What are the TypeScript best practices for typing React props and events?

TypeScript best practices for React involve explicitly typing props, events, and common React elements to enforce type safety and prevent runtime errors in production-ready applications.

How do I identify and fix performance bottlenecks in React components?

Identifying and fixing React performance bottlenecks involves applying optimization strategies and recognizing anti-patterns to prevent unnecessary re-renders and improve application speed.

Does this React patterns guidance cover the new features in React 19?

Yes, this React patterns guidance covers React 19 features, providing direction on integrating the latest updates into production-ready applications for improved component design.