react-19 | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / react-19

react-19

maintained by tirtza-weinfeld

star 0 account_tree 0 verified_user MIT License
bolt View GitHub

name: react-19 description: React 19.3+ patterns. Use for forms, async data, pre-rendering, transitions, refs, context, metadata.

React 19.3+

Avoid → Use

  • useState + onChange for forms → useActionStateexamples/form-action.tsx
  • await in server components → pass promise, use() in client → examples/use-server-promise.tsx
  • forwardRefref as prop
  • useCallback / useMemo → compiler handles it
  • useContextuse(Context)
  • Context.Provider<Context value={}>
  • Manual state reset on prop change → key prop

Patterns

  • Forms: useActionState(fn, init) + useOptimistic + useFormStatusexamples/form-action.tsx
  • Pre-rendering: <Activity mode="hidden">examples/activity-prerender.tsx
  • Effect events: useEffectEvent() for non-reactive logic in effects → examples/effect-event.tsx
  • Async data: pass promise from server, unwrap with use()examples/use-server-promise.tsx
  • ViewTransition: wrap elements, use startTransition() + addTransitionType()examples/view-transition.tsx
  • Mutations outside forms: useTransition + Server Action → examples/server-action-mutation.tsx
  • Suspense: <Suspense fallback={...}> wraps async components
  • Deferred value: useDeferredValue(value, initialValue)
  • Request memoization: cache(async fn) with cacheSignal()
  • Server Action: "use server" + revalidatePath() / revalidateTag()
  • Metadata: <title>, <meta>, <link> hoisted to <head>
  • Refs: ref as prop, cleanup via return function

Component structure

  • One component per file
  • Inner functions use arrow syntax: const handleX = () => {}

chat Comments (0)

chat_bubble_outline

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

Skill Details

GitHub Stars 0
GitHub Forks 0
Created Jan 2026
Last Updated 5 months ago
tools tools frontend

Related Skills

ui-ux-pro-max
chevron_right
ui-ux-pro-max
chevron_right
tailwind-setup
chevron_right
api-routes
chevron_right
data-fetching
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.