after submit a form clear file input path in react js code example Example: clear input file html react e.target.value = null;