I try to setup nested routes for my react app like this
/
/about
/protected
Try adding:
to the tag of your index.html. This way it'll always look for /main.js bundle, even for nested routes.
index.html
/main.js