JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">
<input id="button" type="submit" name="button" value="enter"/>
JavaScript
var count = 1;
document.getElementById('button').onclick = function() {
alert("button was clicked " + (count++) + " times");
};