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