How can I protect routes in ReactJs?

前端 未结 0 1601
遇见更好的自我
遇见更好的自我 2021-01-27 05:25

I am trying to protect my routes with reactjs and hooks. However there is an issue. The user and the token don\'t update even if make setUser() and setToken() with new values in

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