Search

PythonReactSEOPDF
GitHub Skill

react

React/Next.js best practices for modern, performant applications.

WallysonGalvao☆ 0 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

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

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-01-20
Index updated
2026-01-26
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!