React-Router + Typescript error while wrapping component with Router “No overload matches this call”

前端 未结 0 2073
青春惊慌失措
青春惊慌失措 2021-02-14 02:25

I have a component that was working fine until I make a snapshot test. It says "you should not use Link outside of a Router" . Then I wrapped the component with router

相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题