JSFiddle - React, Tailwind, and code Playground

HTML

<button type="button">Activate Me</button>
<input id='textinput' type="text">

JavaScript

$(function() {
if($('#textinput').is(':hover'))
{
alert("hellow");

}
}
    
 //   function activated() {
   //     alert($(this).is(':hover'));
   // }
   // $('button').keypress(activated).click(activated);
});