Getting the react router history.goBack() route pathname

后端 未结 0 407
挽巷
挽巷 2021-01-23 10:29

Is there a way to just get the history\'s previous route without routing there?

const previousRoute = history.goBack();
相关标签:
回答
  • 消灭零回复
提交回复
热议问题