Axios request which is called from onSubmit
the form.
I have tried many times but, on catch
the error model closes automatically. I don't want it to close, I want to display the error in models
axios.post("http://localhost:5000/api/login", finaldata)
.then( (res) => {
} )
.catch( function (err) {
console.log("error", err.response.data)
});
For close button this.props.close
which passes from previous component to this
close=()=>{this.props.close()}