I have a react app, and I'm using react-router, I have a few nested routers, that seem to work fine.
However, when I refresh the page, even though the URL of my browser is something like /admin/users/blah/
nothing is loaded by react-router, it's as if none of the <Route>
components get triggered when the page is refreshed by the user. I see my site's navigation menu, but the content that is supposed to be rendered with a router is just blank, again, as if no <Route>
matched the current URL.
Are there any special considerations or boilerplate I need to add in order to have the expected behavior?
I would expect react-router to match the <Route>
components again, and render according to my browser's URL, but it doesn't do that.