How to use useEffect and the Context API to check if a user is logged in and protect a route?

前端 未结 0 590
谎友^
谎友^ 2020-12-09 06:30

I am trying to protect routes based on whether a user is logged in or not but I cannot get this to work properly since it seems that the information stored in my context pro

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