class-component
Rule category
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 />;
}
}