Last active
December 28, 2018 02:34
-
-
Save supachaic/ae1ddc06ab9a3214400e32a0104c79c0 to your computer and use it in GitHub Desktop.
Facial Recognition SPA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Route, Router } from 'react-router-dom'; | |
import createHistory from 'history/createBrowserHistory'; | |
import './App.css'; | |
import Home from './views/Home'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<Router history={createHistory()}> | |
<div className="route"> | |
<Route exact path="/" component={Home} /> | |
</div> | |
</Router> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment