A solid reference guide that covers the essentials without drowning you in theory. It walks through component design principles, hook patterns, state management decisions, and React 19's new hooks like useActionState and useOptimistic. The tables are actually useful for quick lookups on when to extract custom hooks or which state solution fits your complexity level. It includes a practical anti-patterns section that calls out common mistakes like prop drilling and premature optimization. The file structure diagram gives you a concrete starting point for organizing larger apps. Best used when you're setting up a new React project or need to justify architectural decisions to your team.

skills.sh installs
970
GitHub stars
43.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill react-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

React Patterns

Principles for building production-ready React applications.


1. Component Design Principles

Component Types

TypeUseState
ServerData fetching, staticNone
ClientInteractivityuseState, effects
PresentationalUI displayProps only
ContainerLogic/stateHeavy state

Design Rules

  • One responsibility per component
  • Props down, events up
  • Composition over inheritance
  • Prefer small, focused components

2. Hook Patterns

When to Extract Hooks

PatternExtract When
useLocalStorageSame storage logic needed
useDebounceMultiple debounced values
useFetchRepeated fetch patterns
useFormComplex form state

Hook Rules

  • Hooks at top level only; React’s use API is an exception that can be called in loops/conditions inside a component or Hook (not in try/catch); see use
  • Same order every render
  • Custom hooks start with "use"
  • Clean up effects on unmount

3. State Management Selection

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Category
Frontend Development
First seen
May 16, 2026

More from sickn33/antigravity-awesome-skills

All 708
1sickn33 avatarfrontend-developersickn33/antigravity-awesome-skillsfrontend developer964skills.sh installs
2alfredoperez avatarangular-best-practices-primengalfredoperez/angular-best-practicesangular best practices primeng951skills.sh installs
3mindrally avatarastromindrally/skillsExpert in Astro framework with static generation and partial hydration patterns912skills.sh installs
4microsoft avataragent-sessions-layoutmicrosoft/vscodeAgents workbench layout — covers the fixed layout structure, grid configuration, part visibility, editor modal, titlebar, sidebar footer, and implementation req911skills.sh installs
5prowler-cloud avatarzustand-5prowler-cloud/prowlerZustand 5 state management patterns. Trigger: When implementing client-side state with Zustand (stores, selectors, persist middleware, slices).911skills.sh installs
6affaan-m avatarreact-patternsaffaan-m/everything-claude-codereact patterns893skills.sh installs