JSFiddle - React, Tailwind, and code Playground
by lollero
HTML
<div>asdf</div>
CSS
.Page1 { color: red; }
.Page2 { color: green; }
.Page3 { color: blue; }
JavaScript
var count = 0;
$("div").on("click", function (event) {
yay = count === 3 ? 0 : count++;
$(this).removeClass().addClass('Page' + yay )
});