·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