Remove history.js
This commit is contained in:
parent
3331b3a4bc
commit
647a222fca
|
|
@ -1,14 +1,13 @@
|
|||
import React from 'react';
|
||||
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
||||
import Navigation from './Navigation';
|
||||
import history from '../history';
|
||||
import Home from './Home';
|
||||
import Github from './Github';
|
||||
|
||||
const App = (props) => {
|
||||
return (
|
||||
<div className="App">
|
||||
<BrowserRouter history={history}>
|
||||
<BrowserRouter>
|
||||
<div>
|
||||
<Navigation />
|
||||
<Switch>
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
import { createBrowserHistory } from 'history';
|
||||
|
||||
export default createBrowserHistory();
|
||||
Loading…
Reference in New Issue