React DeTect AutoBill

var input = document.getElementById('#someinput');

setTimeout(() => {
   if (input.matches(':-internal-autofill-selected')) {
      /* do something */
     this.setState({ loginEnabled: true })
   }
}, 500);
Salo Hopeless