JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#">eat</a>
<div id="content">a</div>
JavaScript
function Recur(x)
{
x = x + 1;
$("#content").html(x);
//Switch these two lines to see the difference:
setTimeout(function() { Recur(x); }, 0);
//Recur(x);
}
$("a").click(function(){ Recur(1); });