79180722

Date: 2024-11-12 10:33:59
Score: 1
Natty:
Report link

you can use window.location for this purpose

const LoginClick = () => { window.location.href = '/login'; // Directly set the URL to navigate to the login page }; <span style={{color:'green', cursor:'pointer'}} onClick={LoginClick}>Log In like this

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: iliyan