Answer the question
In order to leave comments, you need to log in
Why 404 in react app?
I did a build of the application, then I do serve -s . When you go through the routes, the application works, but it's only worth refreshing the page (ctrl + f5), it gives 404 on all pages except the main one.
I wrapped all the routes in BrowserRouter and Switch .
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question