Redirect to third party url using react-router-dom

前端 未结 4 968
梦如初夏
梦如初夏 2020-12-20 05:26

I\'m very much aware of the react-router-dom I want to do a conditional rendering of the component. If use is not logged in redirect him to some third party URL

for

4条回答
  •  醉梦人生
    2020-12-20 05:52

    Can easily use a button just do this:

    
    

提交回复
热议问题