JSFiddle - React, Tailwind, and code Playground
HTML
X <input type = "checkbox" />
Y <input type = "checkbox" />
Z <input type = "checkbox" />
JavaScript
var checkbox = $(":checkbox"),
total = checkbox.length,
i = 0,
fn = function(){
$(checkbox[i]).prop("checked", false);
i = i == total - 1 ? 0 : ++i;
$(checkbox[i]).prop("checked", true);
};
$(checkbox[i]).prop("checked", true);
setInterval(fn, 1000);