Back to list
x-tri

react

by x-tri

0🍴 0📅 Jan 25, 2026

SKILL.md


name: react description: React/Next.js best practices for modern, performant applications.

React/Next.js Standards

React 19 Best Practices

  • Use Suspense, the use hook, and promises as props
  • Prefer use, useTransition, and startTransition over useEffect
  • You probably shouldn't use useEffect

Component Design

  • Keep components pure: don't declare constants or functions inside components
  • Use React Query for client-side async data fetching
  • Don't fetch data in useEffect

Loading & Error States

  • Prefer <Suspense> and useSuspenseQuery over React Query's isLoading
  • Use errorBoundary with retry button

Cache Management

  • Don't use magic strings for cache tags; use an enum/factory
  • Use enum for React Query cache strings

Avoid

  • Magic numbers/strings
  • Data fetching in useEffect
  • Constants inside component bodies
  • isLoading patterns when Suspense works

Score

Total Score

50/100

Based on repository quality metrics

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

Reviews

💬

Reviews coming soon