modern-best-practice-react-components

Installation
SKILL.md

Writing React Components

We're using modern React (19+) and we're following common best practices focused on clarity, correctness, and maintainability.

Component Structure & Style

  • PREFER small, focused components with a single responsibility
  • PREFER named function components over arrow functions
    • Exception: anonymous callbacks, inline render props, and closures
  • PREFER explicit return types and props typing (TypeScript) where applicable
  • Keep components flat and readable; avoid deeply nested JSX
  • Group related logic together (event handlers, derived values, helpers)

State Management

Related skills
Installs
1
GitHub Stars
66
First Seen
Mar 31, 2026