github avatar

React19 Source Patterns

A migration reference for upgrading React codebases to version 19, covering every breaking API change at the source file level. You get a quick lookup table for the common replacements (ReactDOM.render to createRoot, forwardRef as direct props, defaultProps to ES6 defaults) plus links to full before/after code for edge cases. Smart call keeping the PropTypes note, since people still use that package standalone even though React stopped validating it. If you're doing a React 19 upgrade and hitting deprecation warnings, this gives you the exact syntax changes without digging through release notes.

skills.sh installs
993
GitHub stars
41K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Frontend Development, Backend & APIs, Git & Pull Requests, AI & Agent Building
First seen
May 16, 2026

More from github/awesome-copilot

All 318
1daymade avatarvideo-comparerdaymade/claude-code-skillsThis skill should be used when comparing two videos to analyze compression results or quality differences. Generates interactive HTML reports with quality metri990skills.sh installs
2chrisbanes avatarcompose-state-deferred-readschrisbanes/skillsUse when Jetpack Compose code reads scroll, animation, gesture, or other frame-rate State in composition, passes changing values across composable boundaries, u989skills.sh installs
3ailabs-393 avatarcicd-pipeline-generatorailabs-393/ai-labs-claude-skillsThis skill should be used when creating or configuring CI/CD pipeline files for automated testing, building, and deployment. Use this for generating GitHub Acti982skills.sh installs
4davila7 avatarlangchaindavila7/claude-code-templatesFramework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct 969skills.sh installs
5cap-go avatarcapacitor-mcpcap-go/capgo-skillsModel Context Protocol (MCP) tools for Capacitor mobile development. Covers Ionic/Capacitor component APIs, plugin documentation, CLI commands, and AI-assisted 961skills.sh installs
6mblode avatarpresentation-creatormblode/agent-skillsCreates bold, minimal, dark-first presentations with structured narrative arcs, punchy slide copy, high-contrast visual design, and conversational speaker notes960skills.sh installs