full-stack-skills/react-skills

react

Provides comprehensive guidance for React development including components, JSX, props, state, hooks, context, performance optimization, and best practices.

Quelltext ansehen

Verwendung

  1. Installationsbefehl kopieren und das Quellpaket vor der Installation in der eigenen Agentenumgebung prüfen.
  2. Benötigte Werkzeuge, Zugangsdaten und Hosts im Original prüfen.
  3. Eingabe und gewünschtes Ergebnis beschreiben und die Ausgabe mit den Quellen abgleichen.
npx skills add https://github.com/full-stack-skills/react-skills --skill react

Vor dem Start

  • Die Installation umfasst weder Modellabo noch API-Kontingent oder Dateizugriffsrechte.
  • Sterne und Installationen zeigen Aktivität, keine unabhängige Qualitäts- oder Sicherheitsprüfung.
Originales Skill-Dokument

Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.

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, 组件, 状态

Verwandte Aufgaben

aus demselben Repository

Weitere Skills

Alle Skills
full-stack-skills
Community

nextjs

Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.

Installationen
2
GitHub Stars
2
Aktualisiert
3. Okt.
full-stack-skills
Community

react-hooks

Provides comprehensive guidance for React Hooks including useState, useEffect, useContext, useReducer, useMemo, useCallback, custom hooks, and hook patterns. Use when the user asks about React Hooks, needs to use hooks in functional components, create custom hooks, or optimize hook performance.

Installationen
2
GitHub Stars
2
Aktualisiert
3. Okt.
full-stack-skills
Community

redux

Provides comprehensive guidance for Redux state management including stores, actions, reducers, middleware, selectors, and Redux Toolkit. Use when the user asks about Redux, needs to manage global state, implement Redux patterns, or work with Redux middleware.

Installationen
2
GitHub Stars
2
Aktualisiert
3. Okt.
full-stack-skills
Community

react-native

Provides comprehensive guidance for React Native development including components, navigation, native modules, platform-specific code, and mobile app development. Use when the user asks about React Native, needs to create mobile applications, implement React Native components, or work with React Native features.

Installationen
1
GitHub Stars
2
Aktualisiert
3. Okt.