I have a website built with react, which uses react-router. For some route I want to serve another page or static file, but since all request are forwarded to react router, its
This should work:
const reload = () => window.location.reload();
// all your routes..
...
// Your special routes..
So, I think this should be pretty clear what it does ;)
Update:
if this is an option you can simply put target="_blank" attribute in your
IMHO this is from the UX perspective even better, because if these routes are not part of your main application, the user can just switch the Tab after visiting that special pages.