JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="Test" onclick="showAlert();"></input>

JavaScript

function showAlert() {
    setTimeout(function() {
        alert('thanks the content has been submitted for review');
    },5000);   // 5 seconds
}