I am new to React.I am trying to change the route inside a function.I am used react-router-dom for routing.I used "react-router-dom": "^4.1.1".
The function is,
LogIn(email, password){
this.props.LogInAction(email, password);
if(this.props.loginstatus == true){
/* Here I need to go to '/home' */
}