JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://fiddle.jshell.net/Darbicus/WC23P/4/show/"></script>
<div id='something'>test</div>
JavaScript
function loop(){setTimeout(function(){
$.ajax({
type: "GET",
url: "http://fiddle.jshell.net/Darbicus/WC23P/4/show/",
dataType: "text/html"
}.done(function(){
$('#something').textContent = arguments;
loop();}));
},0);}