Warns you if you have defined a method but it is never being used anywhere.
The following patterns are considered warnings:
class Foo extends React.Component {
handleClick() {}
render() {
return null;
}
}
The following patterns are not considered warnings:
class Foo extends React.Component {
action() {}
componentDidMount() {
this.action();
}
render() {
return null;
}
}
});