this.props.history.goBack(); going back randomly code example Example: how to go back in usinsg router hisotry this.props.history.goBack(); //react-router (v4)