JSFiddle - React, Tailwind, and code Playground
CSS
body::after {
content: attr(data-after)
}
JavaScript
setInterval(function () {
document.body.dataset.after = new Date;
}, 1000);
body::after {
content: attr(data-after)
}
setInterval(function () {
document.body.dataset.after = new Date;
}, 1000);