JSFiddle - React, Tailwind, and code Playground

by Wallace Maxters

HTML

<h1>Exemplo setTimeout Recursivo</h1>
<div id="horas"></div>

CSS

#horas{
    background-color:#eee;
    color:#333;
    font-size:20px;
    font-family:Calibri;
}

JavaScript

(function getHours()
{
    $('#horas').html((new Date).toLocaleString().substr(11))
    setTimeout(getHours, 1000);

}());