Back to skills
SKILL.md
Components 1
ASecurityReact component structure and export conventions for personal projects. Triggers on component creation, refactoring, or when asking about React patterns.
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added September 27, 2026
Security analysis
100/100npx -y skills add David-Li0406/meta-skill-evloving --skill components-1 --agent claude-codeAre you the author of Components 1?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-components-1)---
name: components
description: React component structure and export conventions for personal projects. Triggers on component creation, refactoring, or when asking about React patterns.
---
# React Components
## Structure
* One component per module
* Component name matches module name
* Props interface named `Props`
* Use design tokens when available
## Definition Pattern
```typescript
import React from 'react'
interface Props {
value: string
onChange?: (value: string) => void
}
export const MyComponent: React.FC<Props> = ({ value, onChange }) => {
return <div>{value}</div>
}
```
## Key Points
* __Named export__ with `export const`
* __`React.FC<Props>`__ for type annotation
* __Arrow function__ expression
* __Destructure props__ in parameter
Attribution
Comments
Loading comments…