You should not use <Link> outside a

后端 未结 10 1713
既然无缘
既然无缘 2020-11-27 15:55

I\'m trying to set up react-router in an example application, and I\'m getting the following error:

You should not use  outside a 
         


        
10条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 16:19

    You can put the Link component inside the Router componet. Something like this:

     
            
            
              
    Completed Profiles

提交回复
热议问题