JSFiddle - React, Tailwind, and code Playground
HTML
<button id="update" type="button">Button</button>
<div id="counter">1</div>
JavaScript
var count = 0;
$("#update").click(function() {
count=count+10
$("#update").html("My current count is: "+count);
});