JSFiddle - React, Tailwind, and code Playground

HTML

<input value="press" type="button" onclick="myclick();">
<script>
    alert("home");
</script>

JavaScript

function myclick() {
    alert("myclick");
    window.location.reload(true);
}