JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div-hi"></div>
<div id="div-bye"></div>
<script type="text/javascript">
$(document).ready(function() {
setInterval(function() {
$.ajax(
{
url : '/echo/json/',
type : 'post',
success : function( resp )
{
$('#div-hi').html(resp);
$('#div-bye').html(resp);
}
});
} , 1000);
});
</script>