Experienced as a front-end developer with 4+ years of building web applications, Using Javascript frameworks likes: VueJS, NuxtJS, ReactJS, NextJS paired with Gitflow, and third party libraries.
Hi, thanks for your great article. but i have a problem with multiple layout for one route prefix. In this situation react loads both layouts. this is my code:
Hi, thanks for your great article. but i have a problem with multiple layout for one route prefix. In this situation react loads both layouts. this is my code:
How can i fix that?
Have you tried to lift up ‘Switch’?
IMMO the route should not be /admin/login but rather something like /auth/login or just /login
This is because you don't know yet that the person using the login screen is an admin until they have logged on.