ideal-react-component

Installation
SKILL.md

Ideal React Component Structure

Overview

A battle-tested pattern for organizing React component files that emphasizes readability, maintainability, and logical flow. This structure helps teams maintain consistency and makes components easier to understand at a glance.

Core principle: Declare everything in a predictable order--imports to styles to types to logic to render--so developers know where to find things.

When to Use

Always use when:

  • Creating new React components
  • Refactoring existing components
  • Reviewing component structure during code review
  • Onboarding developers to component patterns

Useful for:

  • Establishing team conventions
  • Maintaining large component libraries
Related skills
Installs
40
GitHub Stars
2
First Seen
Feb 2, 2026