Skip to main content

react

Provides comprehensive guidance for React development including components, JSX, props, state, hooks, context, performance optimization, and best practices. Use when the user asks about React, needs to create React components, implement hooks, manage component state, or build React applications.

来源信息

仓库
full-stack-skills/react-skills
最近来源活动
2026年10月3日 17:04
检测到的 SKILL.md 语言
多语言混合
星标
1
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
react
description
Provides comprehensive guidance for React development including components, JSX, props, state, hooks, context, performance optimization, and best practices. Use when the user asks about React, needs to create React components, implement hooks, manage component state, or build React applications.
license
Apache-2.0
## When to use this skill Use this skill whenever the user wants to: - 用 React 构建 UI、管理状态与生命周期、使用 Hooks 或类组件 - 配置 Vite/CRA、路由、状态库与构建优化 ## How to use this skill 1. **起步**:create-react-app 或 Vite+React;组件、JSX、props/state。 2. **模式**:Hooks(useState、useEffect、自定义);Context 或 Redux;路由(React Router)。 3. **参考**:官方文档 https://react.dev/ ;测试与性能(memo、lazy)。 ## Best Practices - 组件单一职责与可复用;状态提升与受控组件。 - 列表 key、副作用清理;避免内联对象导致重渲染。 ## Keywords react, React Hooks, JSX, 组件, 状态
在 GitHub 查看