Skip to content

v3.0.0

Compare
Choose a tag to compare
@tatethurston tatethurston released this 23 Jun 17:39
· 22 commits to main since this release
3ea8a56

What's Changed

  • Detects class components that extend the Component class, even if they do not use any JSX. Now errors on manager, business logic, and other renderless class components that extend Component. Previously the below was not caught:
class TimerComponent extends React.Component {
  /// ...

  componentWillMount() {
    this.startTimer();
  }

  componentWillUnmount() {
    this.stopTimer();
  }

  render() {
    null;
  }
}

Thanks @wo1ph for the improvements!

New Contributors

  • @wo1ph made their first contribution in #7

Full Changelog: v2.0.0...v3.0.0