I am using react-router (createBrowserHistory) for my react app.
Below is my code of
var ReactDOM = require(\'react-dom\') ;
var ReactRouter = req
I've struggled with this a little bit so I write it for the next person: First update the web.config file (as Bo Chen mentioned).
This will find every request and rewrite it to /index.html instead.
So you need to have a index.html in the root of your project. Also pay attention to the extension of the file.