Start a fresh conversation. Replace the highlighted placeholders.
Use react19-source-patterns to migrate [React source files] to React 19 patterns, addressing applicable rendering, ref, context, and default-prop changes while retaining propTypes with the required explanatory comment.
Required inputs
[React source files]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: react19-source-patternsdescription: 'Reference for React 19 source-file migration patterns, including API changes, ref handling, and context updates.'
React 19 Source Migration Patterns
Reference for every source-file migration required for React 19.
Do not remove .propTypes assignments. The prop-types package still works as a standalone validator. React 19 only removes the built-in runtime checking from the React package the package itself remains valid.
Add this comment above any .propTypes block:
// NOTE: React 19 no longer runs propTypes validation at runtime.
// PropTypes kept for documentation and IDE tooling only.
Read the Reference
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.
react19-source-patterns by github · The Skill Leaderboard