You should not use <Link> outside a

后端 未结 10 1715
既然无缘
既然无缘 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:06

    I was getting this error because I was importing a reusable component from an npm library and the versions of react-router-dom did not match.

    So make sure you use the same version in both places!

提交回复
热议问题