JSFiddle - React, Tailwind, and code Playground
by bluey
HTML
<script src="http://remysharp.com/demo/mousehold.js"></script>
<button id='btn'>Go</button>
<span id='1'>0</span>
JavaScript
$('#btn').mousehold( function() {
num = $('#1').text();
num = parseFloat(num);
num = num += 1;
$('#1').text(num);
function updateDatabase {
//AJAX update here
}
});