How to check a condition before the render of the component happen?

前端 未结 0 892
名媛妹妹
名媛妹妹 2021-01-31 09:07

I am trying to redirect the user to the /dashboard page if the user is already signed in. However the home page (/) will always get rendered first and then useEffect kicks in, t

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