Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
270 views
in Technique[技术] by (71.8m points)

reactjs - Click on browser back button react

I'm trying to solve the problem that when I click on the browser back button, I want to back to this path: http://localhost:3000/#/contrats, from this path: http://localhost:3000/?toto=test#/, if there's someone who solve this issue before, what was the solution that you're implemented, I'm open to any question, and I appreciate your support.

question from:https://stackoverflow.com/questions/65951194/click-on-browser-back-button-react

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Simplest Way to Store your Routing Data and manage Route is to Use React Router . that will manage your routing and also gives a predefined function to go back or forward etc as per your coding . For Your Reference You Can Use This

This Thing is easy to implement and also you like my Answer . Thank You


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...