JSFiddle - React, Tailwind, and code Playground

by VixedS

HTML

<button id="button2">button3</button>
<button id="button3">button3</button>
<button id="autorefcheck">autorefcheck</button><br /><br />

JavaScript

$(function(){
    var refreshId='';
    function stopinterval() {
        clearInterval(refreshId);
    }
    refreshId = setInterval(function(){
        $('body').append('Ciao zio! ')
    },1000);
    $('#button2, #button3, #autorefcheck').on('click',stopinterval);

});