Open
Description
Is there an existing issue for this?
- I have searched the existing issues and my issue is unique
- My issue appears in the command-line and not only in the text editor
Description Overview
After upgrading from babel-eslint@^10.1.0
to @babel/eslint-parser@^7.22.7
, using an instance property as a React element leads to a react/no-unused-class-component-methods
false positive.

Steps to Replicate
class ViewModel extends React.Component {
constructor(props) {
super(props);
this.View = View;
}
render() {
return <this.View />;
}
}
Using the example code above, run the following command in your CLI:
eslint . --ext .js,.jsx
Expected Behavior
ESLint should not return an error.
eslint-plugin-react version
v7.23.2
eslint version
v8.42.0
node version
v18.16.1