JSFiddle - React, Tailwind, and code Playground

by mcsf

HTML

<p>We are <span id=s>here</span></p>

CSS

#s {
  caret-shape: block;
}

JavaScript

let state = 0;

const states = [
	"here",
  "there",
];

(async () => {
  while (true) {
		state = (state + 1) % state
  }
  console.log("done");
})()