New to Claude Skills? Learn how to install them →

github on GitHub

React 19 Concurrent Patterns

OfficialFree

Safely transition to React 19 while preserving existing patterns.

by github37.7k stars on github/awesome-copilot
1 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What React 19 Concurrent Patterns does

The React 19 Concurrent Patterns skill is designed for developers migrating from React 18 to React 19, ensuring that existing concurrent patterns remain intact during the transition. It provides a structured approach to verify and preserve critical features such as createRoot, useTransition, useDeferredValue, and Suspense. By following the guidelines outlined in this skill, developers can confidently migrate their applications without breaking essential functionality that relies on these patterns.

In the first part of the skill, users are guided on how to verify that their existing React 18 patterns are preserved. This includes checking that the migration process does not alter the behavior of useTransition, useDeferredValue, and Suspense. The skill provides clear code examples to illustrate how these patterns should remain unchanged, ensuring that developers can maintain the expected performance and user experience during the migration.

The second part of the skill introduces new APIs from React 19 that developers can adopt once the migration is stable. This includes the use() hook for promises and context, as well as new actions and state management features. The skill emphasizes that these new features should only be introduced after confirming that the migration has not affected existing concurrent patterns, allowing for a smooth transition and integration of new capabilities without introducing instability.

Overall, this skill is essential for developers looking to migrate their React applications safely while taking advantage of the latest features in React 19. It provides practical guidance and best practices to ensure a successful migration process.

When to use it

Use this skill when migrating a React 18 application to React 19 to ensure existing features remain functional.

When not to use it

This skill is not suitable for projects that do not currently use React 18 or for those looking to implement React 19 features without migration.

What you can build with it

Migrating a Production App

When transitioning a production application from React 18 to 19, use this skill to ensure critical patterns remain intact.

Post-Migration Cleanup

After a successful migration, leverage this skill to adopt new React 19 features like `use()` and Actions.

Code Review for Migration

Use this skill during code reviews to verify that no essential concurrent patterns have been altered during the migration.

How to install React 19 Concurrent Patterns

View source

1. Install with the skills CLI

npx skills add github/awesome-copilot/react19-concurrent-patterns --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by github

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.rendercreateRoot 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();

function handleClick() {
  startTransition(() => {
    setFilteredResults(computeExpensiveFilter(input));
  });
}

useDeferredValue No Migration Needed

// React 18 useDeferredValue  unchanged in React 19:
const deferredQuery = useDeferredValue(query);

Suspense for Code Splitting No Migration Needed

// React 18 Suspense with lazy  unchanged in React 19:
const LazyComponent = React.lazy(() => import('./LazyComponent'));

function App() {
  return (
    <Suspense fallback={<Spinner />}>
      <LazyComponent />
    </Suspense>
  );
}

Part 2 React 19 New APIs

These are worth adopting in a post-migration cleanup sprint. Do not introduce these DURING the migration stabilize first.

For full patterns on each new API, read:

  • references/react19-use.md the use() hook for promises and context
  • references/react19-actions.md Actions, useActionState, useFormStatus, useOptimistic
  • references/react19-suspense.md Suspense for data fetching (the new pattern)

Migration Safety Rules

During the React 19 migration itself, these concurrent-mode patterns must be left completely untouched:

# Verify nothing touched these during migration:
grep -rn "useTransition\|useDeferredValue\|Suspense\|startTransition" \
  src/ --include="*.js" --include="*.jsx" | grep -v "\.test\."

If the migrator touched any of these files, review the changes the migration should only have modified React API surface (forwardRef, defaultProps, etc.), never concurrent mode logic.

Frequently asked questions about React 19 Concurrent Patterns

Similar skills