SKILL.md
525 lines · 2,090 words
React Architect
Purpose
Guide the design and implementation of production-grade React applications with emphasis on maintainability, performance, and developer experience. This skill covers architectural decisions from project inception through scaling.
Component Pattern Selection
Decision Tree
Need shared state between parent and children?
YES -> Compound Components
Need to customize rendering behavior?
YES -> Is the consumer advanced?
YES -> Render Props
NO -> Slots via children
Need cross-cutting behavior (logging, auth, analytics)?
YES -> Higher-Order Components or Custom Hooks
Need polymorphic rendering?
YES -> Polymorphic Component with `as` prop
Default -> Simple function component with props