🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

React Component Generator

by @sunshine-del-ux

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

Versionv1.0.0
Downloads1,278
Installs7
TERMINAL
clawhub install react-component-generator

📖 About This Skill


name: react-component-generator description: 生成 React 组件模板,支持 Function Component, Class Component, Hooks, TypeScript,一键生成完整组件代码。 metadata: {"clawdbot":{"emoji":"⚛️","requires":{},"primaryEnv":""}}

React Component Generator

快速生成 React 组件代码。

功能

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

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

    使用方法

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