How this skill is triggered — by the user, by Claude, or both
Slash command
/napkin:react19-source-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reference for every source-file migration required for React 19.
Reference for every source-file migration required for React 19.
| 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 |
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.
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.
2plugins reuse this skill
First indexed Jun 6, 2026
npx claudepluginhub ani1797/forge --plugin copilot-sdkPreserves React 18 concurrent patterns (useTransition, useDeferredValue, Suspense) during migration and adopts new React 19 APIs (use(), useOptimistic, Actions) after stabilization.
Provides React 19 patterns for concurrent rendering, Server Components, actions, ref-as-prop, metadata, hooks, memoization, plus a codebase review/refactor algorithm for dedup, dead code, and boundary coherence.
Upgrades React apps to latest versions, migrates class components to hooks, and adopts concurrent features. Useful for modernizing React codebases.