React router allows react apps to handle /arbitrary/route. In order this to work, I need my server to send the React app on any matched route.
/arbitrary/route
But webpa
historyApiFallback option on official documentation for webpack-dev-server explains clearly how you can achieve either by using
historyApiFallback: true
which simply falls back to index.html when the route is not found
or
// output.publicPath: '/foo-app/' historyApiFallback: { index: '/foo-app/' }