JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input id="test" value="test" type="button" name="test"/>
</form>
<p> Text, please stay here</p>
JavaScript
function message (){
var x = "hello wolrd";
document.write(x)
}
$("#test").click(function(){
message();
});