I want the selected file to be removed when I click the button. Using the below example
this.state{ file:null}
<input type="file" onChange={this.handleFile}/>
<button type="submit" onClick={this.handleSubmit}>Continue</>
handleSubmit (){
this.setState({file: null})
}