JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<input id="inputFile1" type="file"/>
<button class="reset" style="display:none">reset</button>
<input id="inputFile2" type="file"/>
<button class="reset" style="display:none">reset</button>
<input id="inputFile3" type="file"/>
<button class="reset" style="display:none">reset</button>
<input id="inputFile4" type="file"/>
<button class="reset" style="display:none">reset</button>
<input id="inputFile5" type="file"/>
<button class="reset" style="display:none">reset</button>

JavaScript

$("#inputFile1").change(function(){
  if($(this).val() == "")
    $('.reset').css({"display": "none"});
  else
    $('.reset').css({"display": "block"});
})
$("#inputFile2").change(function(){
  if($(this).val() == "")
    $('.reset').css({"display": "none"});
  else
    $('.reset').css({"display": "block"});
})
$("#inputFile3").change(function(){
  if($(this).val() == "")
    $('.reset').css({"display": "none"});
  else
    $('.reset').css({"display": "block"});
})
$("#inputFile4").change(function(){
  if($(this).val() == "")
    $('.reset').css({"display": "none"});
  else
    $('.reset').css({"display": "block"});
})
$("#inputFile5").change(function(){
  if($(this).val() == "")
    $('.reset').css({"display": "none"});
  else
    $('.reset').css({"display": "block"});
})