React component patterns

From HoangNguyen0403/agent-skills-standard · View interactive version

React component patterns is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Build modern React component architecture with composition patterns. Use when designing reusable React components, applying composition patterns, or structuring component hierarchies.

How to use this skill

Skill file

React Component Patterns

**Priority: P0 (CRITICAL)**

Implementation Guidelines

function ThemedInput({ ref, ...props }: { ref?: React.Ref<HTMLInputElement> } & InputProps) {
  return <input ref={ref} className={useTheme().input} {...props} />;
}

Verify

Anti-Patterns

References

See references/patterns.md for Composition, Compound Components, and Render Props examples.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.