JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" class="first" value="click this!" />

JavaScript

$('.first').on('click', function() {
   $('.first').hide();
    setTimeout(function() {
        $('.first').show();
    }, 2000);
});