JSFiddle - React, Tailwind, and code Playground

HTML

<form action="" method="post" enctype="multipart/form-data">
        <input id="image" type="file" name="image">
    </form>
        <button id="test">Remove selected file</button>

JavaScript

$("#test").click(function(){
    $("#image").val("")
})