JSFiddle - React, Tailwind, and code Playground
by janjhnsn
HTML
<div>2</div>
JavaScript
$(function() {
setInterval(function() {
var container = $('div'),
number = parseInt(container.text());
container.text(number + Math.floor(Math.random() * 2));
}, 1000);
});