State not being set in a function component

前端 未结 0 1741
别那么骄傲
别那么骄傲 2020-11-21 05:08

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题