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
Using HashRouter
worked for me with Redux also, just simply replace:
import {
Router //replace Router
} from "react-router-dom";
ReactDOM.render(
//replace here saying Router
, document.getElementById("app"));
registerServiceWorker();
to:
import {
HashRouter //replaced with HashRouter
} from "react-router-dom";
ReactDOM.render(
//replaced with HashRouter
, document.getElementById("app"));
registerServiceWorker();