JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#">Click me!</a>
<span id="target"></span>
JavaScript
$(document).ready(function() {
function foo(){
writeNumber = $("#target");
setInterval(function() {
writeNumber.html("1");
}, 1000);
setInterval(function() {
writeNumber.html("1");
}, 1000);
};
$('a').click(function() {
foo();
});
});