I am developing an application in which I check if the user is not loggedIn. I have to display the login form, else dispatch an action
loggedIn
dispatch
action
render(){ return ( { this.props.redirect ? :'' } add here component codes ); }