JSFiddle - React, Tailwind, and code Playground
HTML
<button>Submit</button>
JavaScript
$("button").on("click", function() {
var $button = $(this);
$.get("/echo/html", function() {
$button.after("<div>Thank you!</div>");
});
});