Skip to content
Back to skills

Components 1

ASecurity

React 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
developmenttypescriptreactexpressrefactoring

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill components-1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Components 1?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Components 1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-components-1/badge)](https://www.skillsdirectory.com/skills/david-li0406-components-1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…