JSFiddle - React, Tailwind, and code Playground
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...';
}