JSFiddle - React, Tailwind, and code Playground

HTML

<form>
<input type="text"/>
<input id="test" type="button" value="fake submit"/>
</form>

JavaScript

$(document).ready(function() {

    $('#test').click(function() {
       
        $('form').hide();
        
        setTimeout(function(){
                $('form').show();
            
            
        }, 1000);
        
    });

});