Skip to content

Commit

Permalink
added Router component
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Thomas Elfreich committed Oct 8, 2020
1 parent 91b3100 commit 84bc19a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import App from './App';
import * as serviceWorker from './serviceWorker';
import { createBrowserHistory } from 'history';
import { CssBaseline } from '@material-ui/core';
import { BrowserRouter as Router} from 'react-router-dom';

export const history = createBrowserHistory({
basename: process.env.PUBLIC_URL
Expand All @@ -12,7 +13,9 @@ export const history = createBrowserHistory({
ReactDOM.render(
<React.StrictMode>
<CssBaseline />
<App />
<Router>
<App />
</Router>
</React.StrictMode>,
document.getElementById('root')
);
Expand Down

0 comments on commit 84bc19a

Please sign in to comment.