5 curated breaking changes across major versions of react. Use this as a migration checklist before bumping dependencies.
useFormState renamed to useActionState and moved from react-dom to react.
`import { useActionState } from 'react'` (was `useFormState` from react-dom). Signature is identical.
ref is now a regular prop on function components; forwardRef no longer required for most cases.
Remove forwardRef wrappers: `const Foo = ({ ref, ...props }) => ...`. Keep forwardRef only if you export to an external lib that still expects it.
propTypes and contextTypes on class components silently ignored in production.
Migrate validation to TypeScript. Remove propTypes usage; keep only if you target React 18 simultaneously via a lib.
defaultProps on function components removed. Use JavaScript default parameters instead.
Replace `Foo.defaultProps = { size: 'md' }` with `function Foo({ size = 'md' })`.
String refs removed completely (were deprecated since v16).
Use callback refs or useRef. `ref="myRef"` is no longer supported.
Get this data programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/breaking/npm/react