how to reset input type=file in react stack stackoverflow code example Example: clear input file html react e.target.value = null;