react19-source-patterns

Guide source code migration to React 19 with API and ref updates.

Updated Jun 25, 2026
One-click install
npx skills add https://github.com/VSF-QC-TTS/vf-qc-copilot --skill react19-source-patterns-vsf-qc-tts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react19-source-patterns
Source: https://github.com/VSF-QC-TTS/vf-qc-copilot/tree/main/.agents/skills/react19-source-patterns
Command: npx skills add https://github.com/VSF-QC-TTS/vf-qc-copilot --skill react19-source-patterns-vsf-qc-tts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a reference guide for migrating source files to React 19, covering API changes, ref handling, and context updates.

Core Features & Use Cases

  • API Migrations: Details on how to update specific API calls like ReactDOM.render and ReactDOM.hydrate.
  • Ref Handling: Instructions for converting string refs to createRef() and direct ref usage.
  • Context Updates: Guidance on migrating from Legacy Context to the modern createContext.

Quick Start

Migrate your React application to React 19 by reviewing the patterns and examples provided in this skill.

Frequently Asked Questions about react19-source-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate ReactDOM.render and ReactDOM.hydrate for React 19?

React 19 migration requires updating API calls like ReactDOM.render and ReactDOM.hydrate to the new root API patterns. This skill provides specific refactoring guidance and structural updates for transitioning these rendering methods.

What is the best way to convert string refs to createRef in React 19?

Converting string refs to createRef() is required for React 19 migration. This skill details direct ref handling instructions, showing how to refactor string refs into modern createRef usage and direct ref assignments.

How do I migrate Legacy Context to createContext in React components?

Migrating Legacy Context to createContext involves updating your component structure to use the modern context API. This skill provides best practices and patterns for replacing legacy context implementations with createContext.

Does React 19 migration require updating my project's context and refs?

React 19 migration requires updating both context and refs. You must convert string refs to createRef and migrate Legacy Context to createContext. This skill covers these structural updates alongside API changes.

What are the limitations when migrating source files to React 19?

Limitations during React 19 migration involve handling deprecated API calls like ReactDOM.render and outdated context types. This skill outlines the specific API changes and structural refactoring needed to overcome these migration constraints.

Why does my React 19 source file migration fail with legacy context?

React 19 migration fails with legacy context because the modern API requires createContext. This skill helps resolve such issues by providing concrete patterns for migrating context and updating ref handling.