Open doquocang opened 5 months ago
I had an issues that every time I need to redirect user to Login page if they have not logged in already, I have to write redirect code in every components. So I came up with the idea using UseContext Hook for re-using code
Done with optimizing UI for user who have logged in already
changing the UI bases on the state of login:
have not logged in: logged in:
I had an issues that every time I need to redirect user to Login page if they have not logged in already, I have to write redirect code in every components. So I came up with the idea using UseContext Hook for re-using code