You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proper solution here, fwiw, is in the constructor, to do this.handleClick = this.handleClick.bind(this) - or, to do handleClick = this.handleClick.bind(this); as a class field right above the method.
This rule already exists in typescript-eslint but isn't detected in the context of JSX.
The rule should warn about this usage and possible duplicated the functionality of the rule in typescript-eslint: https://typescript-eslint.io/rules/unbound-method
The text was updated successfully, but these errors were encountered: