I'm using the following package in my React application to generate a Recaptcha component: https://github.com/appleboy/react-recaptcha
Here is what the component looks like, with the eslint warning:
this.recaptchaRef
is defined like so: this.recaptchaRef = React.createRef();
This ref allows me to reset the Recaptcha when there is an error with my form like so: this.recaptchaRef.reset();
How would I be able to resolve this error without writing ESlint comments?