Skip to content

Instantly share code, notes, and snippets.

@supachaic
Last active December 28, 2018 02:34
Show Gist options
  • Save supachaic/ae1ddc06ab9a3214400e32a0104c79c0 to your computer and use it in GitHub Desktop.
Save supachaic/ae1ddc06ab9a3214400e32a0104c79c0 to your computer and use it in GitHub Desktop.
Facial Recognition SPA
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