# What changed in eslint-plugin-react-prefer-function-component

> 2 changes in eslint-plugin-react-prefer-function-component 5 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/eslint-plugin-react-prefer-function-component/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## eslint-plugin-react-prefer-function-component 5

### Breaking changes

- The configuration option is replaced by allowErrorBoundary; users who disabled it must update their rule configuration. (5.0.0) — [release notes](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/releases/tag/v5.0.0)
- Replaces allowComponentDidCatch and defaults to true; allows class components that use componentDidCatch and/or getDerivedStateFromError. (5.0.0) — [release notes](https://github.com/tatethurston/eslint-plugin-react-prefer-function-component/releases/tag/v5.0.0)
