
React19 Source Patterns
github/awesome-copilotOfficial
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
What it does
- Covers source-file migrations for React 19, including
ReactDOM.render,hydrate,findDOMNode, andunmountComponentAtNodereplacements - Includes a quick-reference table mapping each legacy pattern to its replacement, with inline fixes or links to
references/api-migrations.md - Keeps
.propTypesassignments 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 -yInstalls 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
| Pattern | Action | Reference |
|---|---|---|
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 ref | Inline fix |
forwardRef(...) wrapper | → ref as direct prop | See references/api-migrations.md |
Component.defaultProps = {} | → ES6 default params | See 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) | Remove | Only 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- Python Pypi Package Builder952
- React Audit Grep Patterns886
- Salesforce Apex Quality886
- Salesforce Flow Design839
- Github Release802
- Flowstudio Power Automate Monitoring788
- Flowstudio Power Automate Governance780
- Salesforce Component Standards770
- React18 Dep Compatibility767
- React18 Batching Patterns757
- React18 Legacy Context749
- Code Tour748
- From The Other Side Vega746
- React18 Lifecycle Patterns746
- React18 String Refs744
- React18 Enzyme To Rtl743
- Linkedin Post Formatter362
- Ui Screenshots216
- Data Breach Blast Radius110
- Sql Server Table Reconciliation106
- Aws Cloudwatch Investigation
- Aws Cost Optimize
- Aws Resource Health Diagnose
- Aws Well Architected Review
Similar to React19 Source Patterns
More Frontend & UI Code
react19-concurrent-patternsgithub/awesome-copilot1.1K installsPreserves React 18 concurrent patterns during migration, then adopts React 19 APIs in a later cleanup.
react18-string-refsgithub/awesome-copilot744 installsMigration guide for React string refs to React.createRef() in class components, covering React 18.3.1 and React 19.
react-modernizationwshobson/agents13.2K installsUpgrade guide for React apps covering version migrations, class-to-hooks conversion, and concurrent features.
react-devsoftaworks/agent-toolkit4.2K installsType-safe React 18-19 patterns covering generic components, event typing, hooks, and router integration.
reactpproenca/dot-skills503 installsReact 19 patterns and a codebase audit algorithm covering concurrent rendering, Server Components, actions, and dedup-focused hygiene.
react-19gentleman-programming/gentleman-skills270 installsReact 19 component patterns that rely on React Compiler instead of manual memoization.