·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