JSFiddle - React, Tailwind, and code Playground

HTML

<span id="countdown"></span>

JavaScript

function updateClock() {
    var eventTime = 1400000000;
    var ts = eventTime - (Math.round(new Date().getTime() / 1000));
    document.getElementById("countdown").innerHTML = ts;
}    
setInterval(updateClock, 1000);