full-stack-skills/react-skills

react

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

Zobacz źródło

Jak używać

  1. Skopiuj polecenie instalacji i sprawdź źródła przed instalacją we własnym środowisku agenta.
  2. W oryginale sprawdź wymagane narzędzia, dane dostępowe i obsługiwane środowiska.
  3. Opisz dane wejściowe i oczekiwany rezultat; porównaj wynik ze źródłami.
npx skills add https://github.com/full-stack-skills/react-skills --skill react

Przed rozpoczęciem

  • Instalacja nie obejmuje subskrypcji modelu, limitu API ani uprawnień do plików.
  • Gwiazdki i instalacje pokazują aktywność, a nie niezależny test jakości lub bezpieczeństwa.
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

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

Powiązane zadania

z tego samego repozytorium

Więcej Skills

Wszystkie Skills
full-stack-skills
Społeczność

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.

instalacje
2
GitHub Stars
2
Aktualizacja
3 paź
full-stack-skills
Społeczność

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.

instalacje
2
GitHub Stars
2
Aktualizacja
3 paź
full-stack-skills
Społeczność

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.

instalacje
2
GitHub Stars
2
Aktualizacja
3 paź
full-stack-skills
Społeczność

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.

instalacje
1
GitHub Stars
2
Aktualizacja
3 paź