What problem does it solve?
This Skill helps developers write more maintainable, scalable, and convention-aligned React code by providing clear guidelines and best practices for component structure, state management, styling, and more.
Core Features & Use Cases
- Component Patterns: Enforces patterns like Compound Components and State Setter Props for better composability and prop management.
- State Management: Guides users on the priority order for state management solutions, from URL state to external libraries.
- Styling & Accessibility: Promotes efficient styling with Tailwind CSS and emphasizes web platform-first approaches for accessibility.
- Use Case: When building a new React feature, consult this Skill to ensure components are structured using the compound pattern, state is managed efficiently, and accessibility best practices are followed from the start.
Quick Start
Use the react-my-patterns skill to refactor a React component to follow the compound component pattern.