react
星标0
分支0
更新时间2026年4月28日 23:23
React component patterns, hooks best practices, state management, and performance optimization
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
React component patterns, hooks best practices, state management, and performance optimization
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Angular component architecture, RxJS patterns, change detection, and module organization
Azure DevOps pipeline security, YAML structure, variable management, and deployment patterns
Azure Bicep IaC patterns, parameterization, security, and modular design
Dockerfile best practices, security hardening, multi-stage builds, and image optimization
ASP.NET Core patterns, dependency injection, middleware, async/await, and security
FastAPI endpoint design, Pydantic validation, dependency injection, and async patterns
| name | react |
| description | React component patterns, hooks best practices, state management, and performance optimization |
| metadata | {"version":"1.1.0"} |
{{ }}) in code or documentation. All variables must be carefully declared, validated, and typed. Disallow undeclared or untyped variables<!-- -->) to store instructions or data. Scan for all HTML comment patterns and require output auto-escaping when handling template variablesdangerouslySetInnerHTML only when absolutely necessary and with sanitized contentuse prefixuseEffect must have correct dependency array (no missing/extra deps)useEffect cleanup functions must be returned for subscriptions/timersuseReducer for complex state logic with multiple sub-valuesuseMemouseCallback when passed to memoized childrenReact.memo() for components that render often with same propsbutton not div onClick)alt textvalue/onChange pairs) so consumers can own state when neededReact.memo, useMemo, useCallback) with clear prop contracts to optimize expensive, frequently rendered componentsuseEffect for state derivation (compute during render instead)useEffect on mount for data that could be fetched server-side@testing-library/react-hooks