I was basically building an authentication system with reactJS by going through some references online.
I got really confused by the code segment below