Navigating using react-router-v6
Hii everyone!
I want to use react-router v6 but there is some problem and the flow is
1. if user click on the go to home page button then the home page should open
2. if user click on the go to contact page link then the search will change and i want to trigger the useEffect to check if search contains contact url then the contact page should open with the link to go back.
but i'm facing issues
https://codesandbox.io/s/react-router-previous-page-testing-ysd36b?file=/src/Contact.js
nidhi.sharma
CodeSandbox
React-router-previous-page-testing - CodeSandbox
React-router-previous-page-testing by nidhi.sharma using react, react-dom, react-router, react-router-dom, react-scripts
0 Replies