JSFiddle - React, Tailwind, and code Playground
HTML
<div id="afficher"></div>
JavaScript
jQuery(function ($) {
setInterval(function () {
var heure = (new Date()).toLocaleTimeString();
$("#afficher").html(heure);
}, 3000); // 3 000 ms => appel toutes les 3 secondes
});