How to create a customhook in reactJS which when clicked browser back button pops a confirm box.and on cancel stay on same page?

前端 未结 0 908
遥遥无期
遥遥无期 2020-12-06 22:34

This is my current progress. But i am not able to make it work.Even if the history is changing internally within the buttons of my application.still it is getting trigerred.

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