npm / eslint-plugin-react-prefer-function-component
eslint-plugin-react-prefer-function-component
What changed in eslint-plugin-react-prefer-function-component 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 breaking
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initeslint-plugin-react-prefer-function-component 52 changes
Breaking changes 2
The configuration option is replaced by allowErrorBoundary; users who disabled it must update their rule configuration.
Replaces allowComponentDidCatch and defaults to true; allows class components that use componentDidCatch and/or getDerivedStateFromError.