JSFiddle - React, Tailwind, and code Playground
by Kevin miller
JavaScript
var colors = ['red', 'green', 'blue']
var count = 0;
setInterval(function () {
document.body.style.backgroundColor = colors[count];
count ++ ;
if(count >= colors.length){
count = 0;
}
},1000)