I have file upload input:
And I handle upload t
I do it by updating key inside my file input.
This will force a re-render and previously selected file will go away.
Changing the state inputKey will re-render the component.
One way to change the inputKey will be to always set it to Date.now() on click of a button which is supposed to clear the field.