class-component
Full Name in eslint-plugin-react-debug
react-debug/class-component
Full Name in @eslint-react/eslint-plugin
@eslint-react/debug/class-component
Features
🐞
Presets
debug
What it does
Reports all class components. Useful for debugging. This rule should only be used for debugging purposes. Otherwise, leave it off.
Examples
import React from "react";
class Example extends React.Component {
render() {
return <button />;
}
}
import React from "react";
class Example extends React.PureComponent {
render() {
return <button />;
}
}