title: React-How can I prevent going back to login page after login?
body: <p>I need to prevent my web page going back to the login page after login</p>
  
  <p>I'm trying to make a web site using React and express.
  I succeeded in preventing my website from going back to the login page by pressing the back button using history. push and life cycle methods, but I'm concerned that anyone can still access the login page by changing URL to '<a href="http://localhost:3000/login" rel="nofollow noreferrer">http://localhost:3000/login</a>' after login. using history.push('/') didn't solve the problem. I'd be grateful if anyone can provide any tips about this issue. All I could find about this issue on StackOverflow was about PHP, not React.</p>