JSFiddle - React, Tailwind, and code Playground

by denisz

HTML

<button id="button">
  click me
</button>

CSS

button {
  background: red;
}
button:hover {
  background: green;
}

JavaScript

function sayHello() {
  console.log('hello');
  sayHello();
//	window.requestAnimationFrame();
}
document.getElementById('button').addEventListener('click', sayHello);