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