Created
February 14, 2020 13:41
-
-
Save markodayan/1aab82ba2f4fbf563d28b17f5d634d00 to your computer and use it in GitHub Desktop.
Redirecting to URL using props.history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleClick = () => { | |
this.props.deletePost(this.props.post.id); | |
this.props.history.push('/'); // Redirect Action | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment