JSFiddle - React, Tailwind, and code Playground

HTML

<button id="myButton" onover="alert(1);">
    My Button
</button>

JavaScript

window.document.getElementById("myButton").hover = function(){
    alert(2);
}