eft will start/stop the interval</p>
    <div
        x-data="{
            timer: 500,
            autoIntervalTest: true, // optional to start/stop the timer
            funtionToRun: function() {
                this.$refs.block.classList.toggle('bg-yellow-400')
            }
        }"
        x-init="$interval(funtionToRun, timer)"
        @click="autoIntervalTest = !autoIntervalTest"
        class="inline-flex space-x-2"
        >
        <button x-text="autoIntervalTest ? 'on' : 'off'" class="w-10 h-