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

React19 Concurrent Patterns

Preserves React 18 concurrent patterns during migration, then adopts React 19 APIs in a later cleanup.

skills.sh installs
1.1K
GitHub stars
41.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the React 18 patterns to keep intact: createRoot, useTransition, useDeferredValue, and Suspense with lazy
  • Points to references for use(), Actions, useActionState, useFormStatus, useOptimistic, and Suspense data fetching
  • Enforces a rule that concurrent-mode logic stays untouched during migration, with a grep check for useTransition and related hooks
  • Designed for React 18 codebases moving to React 19 that want new APIs adopted only after migration stabilizes

Install

$ npx -y skills add github/awesome-copilot --skill react19-concurrent-patterns -y

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

Files

React 19 Concurrent Patterns

React 19 introduced new APIs that complement the migration work. This skill covers two concerns:

  1. Preserve existing React 18 concurrent patterns that must not be broken during migration
  2. Adopt new React 19 APIs worth introducing after migration stabilizes

Part 1 Preserve: React 18 Concurrent Patterns That Must Survive the Migration

These patterns exist in React 18 codebases and must not be accidentally removed or broken:

createRoot Already Migrated by the R18 Orchestra

If the R18 orchestra already ran, ReactDOM.render → createRoot is done. Verify it's correct:

// CORRECT React 19 root (same as React 18):
import { createRoot } from 'react-dom/client';
const root = createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);

useTransition No Migration Needed

useTransition from React 18 works identically in React 19. Do not touch these patterns during migration:

// React 18 useTransition  unchanged in React 19:
const [isPending, startTransition] = useTransition();

Details

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

More from github/awesome-copilot

All 293

Similar to React19 Concurrent Patterns

More Frontend & UI Code