JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<!doctype html>
<html lang="en">
  <body>
    <button id="submit">Submit</button>
  </body>
</html>

CSS

button {
  font-size: 14px;
  margin: 8px;
  padding: 0 15px;
}

JavaScript

document.getElementById('submit').onclick = function() {
  this.textContent = 'Processing...';
}