Routes in Reactjs

Hello guys, how are you? I developed a small project in reactjs and everything works perfectly at localhost. I followed the github pages step by step and deployed this application (it was the first time). The error is in typing the route path in the link. In the initial link it falls in / login, ok, working perfectly and I can follow it by clicking on the links that take me to other routes, but if I add the route manually, for example https://myuser.github.io/register the 404 error, although I can navigate to that route by clicking on the link within the application. Is there any configuration to do that I haven’t done? Since thank you.

2 Likes

Hey @fjrbarros, welcome to the  GitHub Community Forum! I would love to help you out a bit, however I will need some more information before we can come up with a solution. Could you please supply the portion of the code necessary to navigate to the route path (both the HTML element code and code to define the route would work best). Thanks!

2 Likes

Hello, follow the link of my project, the routes are configured in the folder src > routes > Index.jsx.