JSFiddle - React, Tailwind, and code Playground
HTML
<button id='btn' class='btnClass' onclick='myFunction()'>
0
</button>
CSS
.btnClass {
width:96px
height:48px;
font-size:24px;
}
JavaScript
function myFunction() {
document.getElementById("btn").value = "Hello World";
}