I'm new to react and started working with basic routes, i have a serious doubt in routing.
I Have a 3 pages "Welcome.js" , "Signin.js, "Signup.js".
"Welcome.js" contains signin and signup button.
clicking on signin and signup button, it goes to its respective pages.
both the signin and signup pages contains a backbutton, onclicking on backbutton it goes to welcome.js page.
signin page contains text "if your a newuser go to signup" and signup page contains text "already a user, go to login". on clicking on that texts, it goes to corresponding pages.
so my problem is, if i click the "if your a newuser go to signup" and enters the signup page and pressing backbutton it goes to "welcome page". i want it to go to the signin page because the signup page comes from clicking the text from signin page.
kindly give me idea, so i can implement this routing in my future works.