JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<!doctype html>
<html lang="en">
<body>
  <input type="button" id="submit" value="Submit" class="btn">
</body>
</html>

CSS

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

JavaScript

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