JSFiddle - React, Tailwind, and code Playground

HTML

<input type=button id="btntest" value="test">
<div id=output>1</div>

JavaScript

$('#btntest').click(function(){
    $('#output').html(parseInt($('#output').html())+1);
});