JSFiddle - React, Tailwind, and code Playground

HTML

<input type=button id=addCount value="Adicionar Count">

JavaScript

var count = 5;
$('#addCount').click(function(){
  alert(count);
  count++;
});