·react-best-practices
</>

react-best-practices

0xbigboss/claude-code

提供用於鉤子、效果、引用和組件設計的 React 模式。涵蓋逃生艙口、反模式和正確的效果使用。在讀取或寫入 React 組件(帶有 React 導入的 .tsx、.jsx 文件)時必須使用。

1.2K安裝·181熱度·@0xbigboss

安裝

$npx skills add https://github.com/0xbigboss/claude-code --skill react-best-practices

SKILL.md

When working with React, always load both this skill and typescript-best-practices together. TypeScript patterns (type-first development, discriminated unions, Zod validation) apply to React code.

Effects let you "step outside" React to synchronize with external systems. Most component logic should NOT use Effects. Before writing an Effect, ask: "Is there a way to do this without an Effect?"

React remounts components in development to verify cleanup works. If you see effects firing twice, don't try to prevent it with refs:

提供用於鉤子、效果、引用和組件設計的 React 模式。涵蓋逃生艙口、反模式和正確的效果使用。在讀取或寫入 React 組件(帶有 React 導入的 .tsx、.jsx 文件)時必須使用。 來源:0xbigboss/claude-code。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/0xbigboss/claude-code --skill react-best-practices
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 react-best-practices?

提供用於鉤子、效果、引用和組件設計的 React 模式。涵蓋逃生艙口、反模式和正確的效果使用。在讀取或寫入 React 組件(帶有 React 導入的 .tsx、.jsx 文件)時必須使用。 來源:0xbigboss/claude-code。

如何安裝 react-best-practices?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/0xbigboss/claude-code --skill react-best-practices 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/0xbigboss/claude-code