スキル一覧に戻る
kprsnt2

react

by kprsnt2

0🍴 0📅 2026年1月15日
GitHubで見るManusで実行

SKILL.md


name: react description: React development patterns and best practices including hooks, state management, and performance optimization. globs: ["/*.jsx", "/.tsx", "**/next.config.", "**/vite.config.*"] priority: 95 tags: ["framework"]

React Best Practices

Component Design

  • Keep components small and focused (< 200 lines)
  • Prefer functional components with hooks
  • Use composition over prop drilling
  • Lift state only when needed
  • Co-locate related code

Hooks

  • Use useState for local state
  • Use useEffect for side effects (with cleanup)
  • Use useCallback for stable function references
  • Use useMemo for expensive computations
  • Use useRef for mutable values
  • Always include all dependencies in dependency arrays
  • Create custom hooks for reusable logic

Performance

  • Use React.memo for expensive pure components
  • Lazy load routes with React.lazy
  • Use Suspense for loading states
  • Use keys properly in lists (never use index as key)
  • Avoid inline object/function creation in JSX
  • Use React DevTools Profiler

State Management

  • Start with local state + prop drilling
  • Use Context for theme/auth/locale
  • Use Zustand/Jotai for simple global state
  • Use React Query/TanStack Query for server state
  • Use Redux Toolkit for complex client state

Patterns

  • Container/Presentational components
  • Compound components for flexibility
  • Render props for sharing logic
  • Custom hooks for logic reuse

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です