JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input id="control" type="file"/>
<button type="reset" id="file_reset" style="display:none"></button>
</form>
<br><br>
<br>
<button type="button" id="some_action">Clear Form</button>
JavaScript
var input = $("#control");
$('#some_action').on('click', function(){
input.replaceWith(input = input.val('').clone(true));
});