Skip to content
Advertisement

doesn’t work when I separate the routes into other components

The problem is that when entering a route that does not exist the does not work, this only happens when I separate the / login and / register routes in another component, is there any way to solve it? Thanks for reading

AppRouter.js

JavaScript

AuthRoutes.js

JavaScript

Advertisement

Answer

I found this solution:

AppRouter.js

JavaScript

AuthRoutes.js

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement