JSFiddle - React, Tailwind, and code Playground

by Alex Liu

Babel + JSX

console.clear();
function sleep(time) {
  return new Promise((resolve) => {
  	setTimeout(resolve, time)
  });
}

(async function() {
  console.log("start");
  await sleep(3000);
  console.log("end");
})();