/fuse-react:react-19from fuse-react
Covers React 19.3 hooks and features: use(), useOptimistic, useActionState, useEffectEvent, Activity, ViewTransition, Fragment refs, use(browser()), and React Compiler. Also documents classic hooks and React 18→19 breaking changes.
Ships in fuse-react. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Also documents all classic hooks (useState, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useId, useSyncExternalStore) and React 18→19 breaking changes (ref as a prop instead of forwardRef, <Context value={}> instead of <Context.Provider>). This is the core React hooks/features skill — for global state see react-state, for forms see react-forms, and for SOLID architecture rules see solid-react.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
Stable in 19.3 (react/react-dom 19.3.0, 2026-09-09; current patch 19.3.1, 2026-10-14; @types/react 19.3 needs TypeScript ≥ 5.6):
| API | Purpose | Guide |
|---|---|---|
<ViewTransition> | Animate enter/exit/update/share via the browser View Transition API | references/suspense-patterns.md |
addTransitionType(type) | Tag a Transition to pick a different animation | references/suspense-patterns.md |
<Fragment ref> | FragmentInstance (events, focus, observers) without a wrapper <div> | references/ref-as-prop.md |
use(browser(reason?)) (react-dom) | Browser-only rendering: suspends on the server, Suspense fallback in HTML | references/new-hooks.md |
Behaviour changes: Transitions no longer entangle, StrictMode double-invokes effects during hydration, DEV warning on conditional use() unblocking → references/migration-18-19.md.
RSC security: react-server-dom-* must be ≥ 19.2.4 (CVE-2025-55182 RCE and follow-up DoS CVEs); prefer ≥ 19.2.7 or 19.3.0.
| Hook | Purpose | Guide |
|---|---|---|
use() | Read promises/context in render | references/new-hooks.md |
useOptimistic | Optimistic UI updates | references/new-hooks.md |
useActionState | Form action state management | references/new-hooks.md |
useFormStatus | Form pending state (child components) | references/new-hooks.md |
useEffectEvent | Non-reactive callbacks in effects | references/new-hooks.md |
→ See references/new-hooks.md for detailed usage
| Hook | Purpose | Guide |
|---|---|---|
useState | Local component state | references/use-state.md |
→ For global state, see react-state skill
| Hook | Purpose | Guide |
|---|---|---|
useEffect | Side effects after paint | references/use-effect.md |
useLayoutEffect | Sync DOM before paint | references/use-layout-effect.md |
| Hook | Purpose | Guide |
|---|---|---|
useRef | DOM access, mutable values | references/use-ref.md |
useImperativeHandle | Customize ref API | references/use-imperative-handle.md |
| Hook | Purpose | Guide |
|---|---|---|
useMemo | Memoize expensive values | references/use-memo.md |
useCallback | Memoize functions | references/use-callback.md |
→ React Compiler handles most memoization automatically
| Hook | Purpose | Guide |
|---|---|---|
useId | Unique IDs for accessibility | references/use-id.md |
useSyncExternalStore | External store subscription | references/use-sync-external-store.md |
→ See references/custom-hooks-patterns.md for patterns
→ See references/templates/custom-hooks.md for implementations
Hide/show components while preserving state:
<Activity mode={isActive ? 'visible' : 'hidden'}>
<TabContent />
</Activity>
→ See references/activity-component.md for patterns
Automatic memoization - useMemo/useCallback mostly obsolete:
→ See references/react-compiler.md for details
// Read promise in render (with Suspense)
const data = use(dataPromise)
// Read context conditionally (unique to use())
if (condition) {
const theme = use(ThemeContext)
}
→ See references/templates/use-promise.md
const [optimisticValue, setOptimistic] = useOptimistic(actualValue)
// Update UI immediately, server updates later
→ See references/templates/optimistic-update.md
const [state, action, isPending] = useActionState(asyncFn, initialState)
→ See references/templates/action-form.md
const onEvent = useEffectEvent(() => {
// Always has fresh props/state, doesn't trigger re-run
})
useEffect(() => {
connection.on('event', onEvent)
}, []) // No need to add onEvent to deps
→ See references/new-hooks.md
| Change | Migration |
|---|---|
ref is a prop | Remove forwardRef wrapper |
Context is provider | Use <Context value={}> directly |
useFormStatus | Import from react-dom |
→ See references/migration-18-19.md
use() + Suspense, NOT useEffectuseOptimistic for instant feedback<Activity> to preserve stateuseEffectEvent for non-reactive callbacks| Template | Use Case |
|---|---|
templates/action-form.md | Form with useActionState |
templates/optimistic-update.md | useOptimistic pattern |
templates/activity-tabs.md | Activity component tabs |
templates/use-promise.md | use() with promises |
| Template | Use Case |
|---|---|
templates/state-patterns.md | useState patterns |
templates/effect-patterns.md | useEffect patterns |
templates/ref-patterns.md | useRef patterns |
templates/custom-hooks.md | Custom hooks implementations |
templates/external-store.md | useSyncExternalStore patterns |
| Template | Use Case |
|---|---|
templates/virtual-list.md | TanStack Virtual for long lists |
templates/lazy-components.md | Code splitting and lazy loading |
templates/profiling-devtools.md | React DevTools Profiler |
Render only visible items for large lists (100+ items).
→ See references/virtualization.md
Code split routes and heavy components for smaller bundles.
→ See references/lazy-loading.md
Measure render performance with DevTools Profiler.
→ See references/profiling.md
Note: With React Compiler (1.0+), manual memo/useMemo/useCallback optimizations are mostly obsolete. Profile first to verify if optimization is needed.
useEffect for data fetching → use use() + SuspenseforwardRef → use ref as prop<Context.Provider> → use <Context value={}><Activity>references/actions-api.md (opens in a new tab)references/activity-component.md (opens in a new tab)references/context-improvements.md (opens in a new tab)references/custom-hooks-patterns.md (opens in a new tab)references/document-metadata.md (opens in a new tab)references/hooks-improved.md (opens in a new tab)references/lazy-loading.md (opens in a new tab)references/migration-18-19.md (opens in a new tab)references/new-hooks.md (opens in a new tab)references/profiling.md (opens in a new tab)references/react-compiler.md (opens in a new tab)references/ref-as-prop.md (opens in a new tab)references/resource-loading.md (opens in a new tab)references/suspense-patterns.md (opens in a new tab)references/templates/action-form.md (opens in a new tab)references/templates/activity-tabs.md (opens in a new tab)references/templates/custom-hooks.md (opens in a new tab)references/templates/document-metadata.md (opens in a new tab)references/templates/effect-patterns.md (opens in a new tab)references/templates/error-boundary.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fusengine/claude-plugins --plugin fuse-react8 skills in this plugin
/react-formsUse when building type-safe forms in React with TanStack Form v1 — Zod/Yup/Valibot validation, async validation, field arrays./react-i18nUse when implementing translations in a React app (not Next.js) with react-i18next — useTranslation, namespaces, pluralization, Suspense./react-shadcnshadcn/ui for React with TanStack Form. Use when building UI components, forms, dialogs, tables, toasts, or accessible components./react-stateZustand v5 state management for React. Use when implementing global state, stores, persist, or client-side state.Other plugins' skills for the same job