JSFiddle - React, Tailwind, and code Playground
HTML
<input id="Day" type="button" value="1Day" title="Generate 1 day report" />
JavaScript
var theElement = document.getElementById("Day");
theElement.onclick = function(){
alert("Hi");
};