react file input reset on submit code example Example: clear input file html react e.target.value = null;