Answers for "how to delete props from url"

0

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
   }
}
Posted by: Guest on March-05-2021

Code answers related to "how to delete props from url"

Code answers related to "Javascript"

Browse Popular Code Answers by Language