JSFiddle - React, Tailwind, and code Playground

HTML

<div class="footerOrder" id="loading" style="display:none;">
      <img src="../utils/loadingExistenz.gif" width="32" height="32" border="0" alt="txt" />
</div>
<br/><a href="#" id="aLink2" >Test2</a>

JavaScript

$(function(){   
        
    $("#aLink2").click(function(){
        $('#loading').show();
    });  
    
});