React Router 4 and props.history.push
There's something driving me crazy in React, and I need your help. Basically, when the user clicks "My Profile", I want to redirect to the user's profile. To do that, I use the following snippet viewProfile = () => { console.log('My USER ID: ', this.props.userId); this.props.history.push(`/profile/${this.props.userId}`); } This should work. However, although the URL is changing to the correct URL when 'My Profile' is clicked, the page isn't appearing. It just stays as the old page. After googling for a while, I know it's something to do with redux ... However, I can't find a solution. (this