BrowserRouter

master
Tudor Stanciu 2019-08-23 00:39:17 +03:00
parent 22d72c53d8
commit 7d0d9b30ee
3 changed files with 4785 additions and 7881 deletions

12705
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,14 +8,15 @@
"@fortawesome/react-fontawesome": "^0.1.4",
"bootstrap": "^4.2.1",
"font-awesome": "^4.7.0",
"lodash": "^4.17.11",
"lodash": "^4.17.15",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-fontawesome": "^1.6.1",
"react-scripts": "^2.1.5"
"react-router-dom": "^5.0.1",
"react-scripts": "^3.1.1"
},
"scripts": {
"start": "react-scripts start",
"start": "set PORT=3006 && react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"

View File

@ -5,8 +5,12 @@ import App from "./components/App";
import * as serviceWorker from "./serviceWorker";
import "font-awesome/css/font-awesome.min.css";
import "bootstrap/dist/css/bootstrap.css";
import { BrowserRouter } from 'react-router-dom';
ReactDOM.render(<App />, document.getElementById("root"));
ReactDOM.render(
<BrowserRouter basename={process.env.PUBLIC_URL}><App /></BrowserRouter>,
document.getElementById("root")
);
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.