I read through this solutions here. But I can\'t figure out how can I do this without using useEffect hooks. The focus of this question would be in Login.
useEffect
Login.