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";
$("p").html(x);
}
$("#test").click(function() {
message();
});