·ideal-react-component
</>

ideal-react-component

antjanus/skillbox

在创建 React 组件、构建组件文件、组织组件代码时使用, 调试 React hooks 问题,或者当被要求“创建一个 React 组件”、“构造这个组件”时, “检查组件结构”、“重构此组件”、“修复无限循环”或“useEffect 不起作用”。 适用于 TypeScript 和 JavaScript React 组件。包括钩子反模式。

11安装·2热度·@antjanus

安装

$npx skills add https://github.com/antjanus/skillbox --skill ideal-react-component

SKILL.md

A battle-tested pattern for organizing React component files that emphasizes readability, maintainability, and logical flow. This structure helps teams maintain consistency and makes components easier to understand at a glance.

Core principle: Declare everything in a predictable order—imports to styles to types to logic to render—so developers know where to find things.

Why: "When you deal with more than a handful of imports, it's really easy to get lost in what the file is using."

在创建 React 组件、构建组件文件、组织组件代码时使用, 调试 React hooks 问题,或者当被要求“创建一个 React 组件”、“构造这个组件”时, “检查组件结构”、“重构此组件”、“修复无限循环”或“useEffect 不起作用”。 适用于 TypeScript 和 JavaScript React 组件。包括钩子反模式。 来源:antjanus/skillbox。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/antjanus/skillbox --skill ideal-react-component
分类
</>开发工具
认证
收录时间
2026-02-05
更新时间
2026-02-18

快速解答

什么是 ideal-react-component?

在创建 React 组件、构建组件文件、组织组件代码时使用, 调试 React hooks 问题,或者当被要求“创建一个 React 组件”、“构造这个组件”时, “检查组件结构”、“重构此组件”、“修复无限循环”或“useEffect 不起作用”。 适用于 TypeScript 和 JavaScript React 组件。包括钩子反模式。 来源:antjanus/skillbox。

如何安装 ideal-react-component?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/antjanus/skillbox --skill ideal-react-component 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/antjanus/skillbox

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-05