Programmatically Navigate using react-router

前端 未结 8 1319
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-21 23:07

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

8条回答
  •  感动是毒
    2020-11-21 23:08

    render(){ 
    
        return (
            
    { this.props.redirect ? :'' }
    add here component codes
    ); }

提交回复
热议问题