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

React19 Source Patterns

Migration reference covering React 19 source-file changes, from ReactDOM API updates to ref and context rewrites.

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

What it does

  • Covers source-file migrations for React 19, including ReactDOM.render, hydrate, findDOMNode, and unmountComponentAtNode replacements
  • Includes a quick-reference table mapping each legacy pattern to its replacement, with inline fixes or links to references/api-migrations.md
  • Keeps .propTypes assignments in place and adds a standard comment noting React 19 no longer validates them at runtime
  • Designed for teams upgrading React codebases that need before-and-after patterns for forwardRef, defaultProps, legacy context, and string refs

Install

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

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

Files

React 19 Source Migration Patterns

Reference for every source-file migration required for React 19.

Quick Reference Table

PatternActionReference
ReactDOM.render(...)→ createRoot().render()See references/api-migrations.md
ReactDOM.hydrate(...)→ hydrateRoot(...)See references/api-migrations.md
unmountComponentAtNode→ root.unmount()Inline fix
ReactDOM.findDOMNode→ direct refInline fix
forwardRef(...) wrapper→ ref as direct propSee references/api-migrations.md
Component.defaultProps = {}→ ES6 default paramsSee references/api-migrations.md
useRef() no arg→ useRef(null)Inline fix add null
Legacy Context→ createContext→ api-migrations.md#legacy-context
String refs this.refs.x→ createRef()→ api-migrations.md#string-refs
import React from 'react' (unused)RemoveOnly if no React. usage in file

PropTypes Rule

Details

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

More from github/awesome-copilot

All 293

Similar to React19 Source Patterns

More Frontend & UI Code