react-patterns

Installation
SKILL.md

React

Overview

Covers component architecture, performance optimization, state management, data fetching, and modern React 19+ APIs. Prioritizes React Compiler compatibility, Server Components, and elimination of data fetching waterfalls.

When to use: Building React applications, optimizing performance, choosing state management, implementing data fetching, reviewing component architecture.

When NOT to use: Non-React frameworks, purely server-side rendering without React, static sites without interactivity.

Quick Reference

Pattern API / Approach Key Points
Data fetching use(dataPromise) Replaces useEffect+useState fetch pattern
Form handling useActionState(action, init) Built-in pending states and error handling
Optimistic UI useOptimistic(state, updateFn) Instant feedback while server processes
Non-urgent updates useTransition() Mark updates as interruptible
Effect events useEffectEvent(fn) Reactive values without re-triggering effects
Related skills
Installs
55
GitHub Stars
11
First Seen
Feb 20, 2026