I have a login handle that calls an API, stores in localStorage and I want to set a state with that information, but when I console log, it returns null.
Any help or