I\'m using React-router and it works fine while I\'m clicking on link buttons, but when I refresh my webpage it does not load what I want.
For instance, I am in
If you are hosting your react app on IIS, just add a web.config file containing :
This will tell IIS server to return the main page to the client instead of 404 error and no need to use hash history.