New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Modern React guidance covering components, hooks, state, React 19, performance, and TypeScript typing.

skills.sh installs
970
GitHub stars
50.1K
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers component types, hook extraction, state management selection, and composition patterns for production React apps
  • Includes React 19 hooks (useActionState, useOptimistic, use) and notes on when React Compiler applies
  • Enforces rules such as one responsibility per component, hooks at top level, and profiling before optimizing
  • Designed for developers building or reviewing React and TypeScript applications who want consistent structure

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill react-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/sickn33/agentic-awesome-skills
Category
Frontend & UI Code
First seen
May 16, 2026

More from sickn33/agentic-awesome-skills

All 682

Similar to React Patterns

More Frontend & UI Code