スキル一覧に戻る
MuhammedAlkhudiry

react

by MuhammedAlkhudiry

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

SKILL.md


name: react description: React coding standards. Use when working on React components to ensure proper hooks usage, state management, and performance patterns.

React

Critical rules for React development.


Hooks

  • Hooks first, top-level only (no loops/conditions/nested fns)
  • Order: hooks → derived values → handlers → JSX return
  • Group by concern: state/store → data/query → memo → effects
  • Never select entire store (e.g. Zustand); always use selectors + shallow

State & Data

  • State minimal, normalized; derive instead of duplicate
  • Prefer local state; global only for truly cross-cutting data
  • Use query libraries (React Query/SWR) for server data; never raw fetch in components
  • Query cache = source of truth; don't mirror to local state

Props & Composition

  • Minimize props; prefer whole objects over many primitives
  • No prop drilling; use composition or context
  • Access global stores via hooks, not props

Effects & Render

  • Avoid useEffect when possible; use only for external sync
  • All dependencies listed; restructure instead of silencing lints
  • Cleanup always (timers, subscriptions)
  • Render pure: no side-effects, no mutation
  • Stable keys in lists (real IDs, not array index)
  • Final conditional render (if (!data) return null;) just before JSX, never between hooks

Performance

  • No premature optimization; memoize only for real perf issues
  • Avoid inline objects/functions in JSX that cause re-renders

スコア

総合スコア

50/100

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

SKILL.md

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

+20
LICENSE

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

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

0/5

レビュー

💬

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