# React Component Generator

> 生成 React 组件模板，支持 Function Component, Class Component, Hooks, TypeScript，一键生成完整组件代码。

- Skill: `dvcrn/react-component-generator` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add dvcrn/react-component-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvcrn/react-component-generator/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: dvcrn (https://skillmd.com/u/dvcrn)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/dvcrn/react-component-generator

---


# React Component Generator

快速生成 React 组件代码。

## 功能

- ⚡ 一键生成组件
- 📝 支持 TypeScript
- 🎣 内置 Hooks
- 🎨 多种组件类型

## 组件类型

| 类型 | 说明 |
|------|------|
| function | 函数组件 |
| class | 类组件 |
| hook | 自定义 Hook |
| hoc | 高阶组件 |

## 使用方法

```bash
react-component-generator MyButton --type function --typescript
react-component-generator useMyHook --type hook
```

