arayaroma/ether/react-component-composition
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when structuring React component APIs — composition over inheritance, compound components, render props. Use when a component is growing too many boolean/variant props or children need to share implicit state.
Install
npx vskill@latest install arayaroma/ether/react-component-compositionSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
React component composition patterns
Composition over inheritance
Split a component into small pieces (Card, CardHeader, CardBody) instead of one component with many flags:
Compound components (implicit shared state via Context)
Use when siblings (Tab, TabList) need to coordinate without prop-drilling:
Render props
Use when a component owns async/derived state but the caller decides how to render each phase:
Prefer a custom hook (see react-custom-hooks) over render props for new code — render props mainly survive in older codebases or when the "renderer" truly varies per call site.
When to reach for each
- Two or three visual sub-parts, no shared implicit state → composition.
- Siblings need to read/write one shared piece of state without prop drilling → compound components.
- The consumer needs full control over markup for each async phase → render props (or a hook returning
{data, loading, error}, seereact-custom-hooks).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/react-component-composition/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arayaroma/ether/react-component-composition)