Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
272 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 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...