·
Last changedVersion:
This version passed the hardening gate. Hardening applied 21 targeted changes and preserved all other text. Classified findings before hardening: 0. Classified findings closed: 0. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 12. Review findings remaining: 2.
None
None
Expand | File | Group | Subtype | Severity | Status |
|---|
No findings available
0 findings
Reference for every source-file migration required for React 19.
Apply these migrations only to the project source files the team owns. Leave installed third party packages, vendored code, build output, and generated files unchanged. Confirm with the user before rewriting many files at once.
| Pattern | Action | Reference |
|---|---|---|
| → | See references/api-migrations.md |
| → | See references/api-migrations.md |
| → | Keep the root returned by createRoot or hydrateRoot so unmount can be called on it. See references/api-migrations.md |
| → direct ref | Attach a ref to the specific DOM element, passing ref as a prop for function children, and flag unclear targets for manual review. See references/api-migrations.md |
| → ref as direct prop | See references/api-migrations.md |
| → ES6 default params. Class components still support defaultProps in React 19, so keep them as written | See references/api-migrations.md |
| → | Inline fix: add |
Legacy Context | → | Legacy Context API Removed section in references/api-migrations.md |
String refs | → | String Refs Removed section in references/api-migrations.md |
| Remove | Only if no |
Do not remove .propTypes assignments. The prop-types package only validates when its check function is called manually, and React 19 never runs component propTypes checks. React 19 only removes the built-in runtime checking from the React package, and the package itself remains valid.
Add this comment above any .propTypes block:
For full before/after code for each migration, read references/api-migrations.md. It contains the complete patterns including edge cases for forwardRef with useImperativeHandle, defaultProps null vs undefined behavior, and legacy context provider/consumer cross-file migrations.
Get started with chainctlchainctl skill install public/github/react19-source-patterns:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.chainreg.biz/public/github.com/github/skills/react19-source-patterns:latest
MIT
HARDENING.md
LICENSE
SKILL.md
references/api-migrations.md