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
In your index.html head, add the following:
head
Then when running with webpack dev server use this command.
webpack-dev-server --mode development --hot --inline --content-base=dist --history-api-fallback
--history-api-fallback is the important part
--history-api-fallback