JSFiddle - React, Tailwind, and code Playground
HTML
<input id="myButton" type="button" value="Test"></input>
JavaScript
document.getElementById("myButton").onclick=function(){showAlert()};
function showAlert() {
alert('thanks the content has been submitted for review');
setTimeout(function() {
// DO OTHER STUFF
},5000); // 5 secon
}