Error 404 with react-router

Yes! This is exactly what you’re supposed to do!

When you load the home page and then navigate to another page, Javascript is used to manipulate the path shown in the browser. When you refresh the page, the browser requests the page from the server. But the server doesn’t know the request should be forwarded to the HTML file serving the React app. So you need to tell the server to do that.

Does this help?