input type file remove selected file react code example Example: clear input file html react e.target.value = null;