您即將從本網站離開,並前往https://pretagteam.com/question/redirect-logged-user-from-loginregister-page-with-react-hooks