React-Router open Link in new tab

前端 未结 11 618
傲寒
傲寒 2020-12-08 01:24

Is there a way to get React Router to open a link in new tab? I tried this and it did not work.



        
11条回答
  •  悲&欢浪女
    2020-12-08 02:23

    In my case, I am using another function.

    Function

     function openTab() {
        window.open('https://play.google.com/store/apps/details?id=com.drishya');
      }
    
      
    

提交回复
热议问题