how to delete props from url code example
Example: how to delete props from url
const checkDelete = this.props.location.state.deleted // true
if(checkDelete){
this.setState({
messageAlert:true
}, () => {
history.replace('/home/admins', {state: { deleted : false }}) // false
}
}