JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<body>
<div id="output">?</div>
</body>
</html>
JavaScript
var now = new moment(new Date());
if (now.seconds() > 0) {
now.add('minutes', -1);
}
document.getElementById("output").innerHTML = now.seconds(0);