JSFiddle - React, Tailwind, and code Playground

by heera

HTML

<div id="yourDiv">Your Div</div>

JavaScript

setTimeout(function() {
        $("#yourDiv").remove();
    }, 5000);