Need help with react-router

I have created this app with react-router. But when I navigate to another route (e.g. cart or shop) and then refresh the page it throws an error(404: page not found).

code is here. Please provide any suggestions.

The server doesn’t know what to serve at that path.

1 Like

@lasjorg
Thank you so much for sharing the article. It was great.
Finally, the problem is fixed.
These resources also helped a lot :