what can i use instead of history.canGo() in react router

后端 未结 0 758
温柔的废话
温柔的废话 2021-01-24 06:24

here in this code we used history.canGo() to check if we can to redirect but in newer versions of this react router canGo removed! and we need somethink like that to use! i read

相关标签:
回答
  • 消灭零回复
提交回复
热议问题