JSFiddle - React, Tailwind, and code Playground
HTML
<button>button</button>
CSS
button{
position:absolute;
top:10px;
left:10px;
}
JavaScript
$(function(){
$("button").on({
mouseover:function(){
$(this).css({
left:(Math.random()*200)+"px",
top:(Math.random()*200)+"px",
});
}
});
});