text: import React from 'react';
  import ReactDOM from 'react-dom';
  import './index.css';
  // import App from './App';
  import registerServiceWorker from './registerServiceWorker';
  import Upload from './components/Upload';
  import Display from './components/Display';
  import Callback from './components/Callback';
  import { Router, Route, browserHistory } from 'react-router';
  import { requireAuth } from './utils/Auth';
  
  const Root = () => {
      return (
          <div className="container">
              <Router history={browserHistory}>
                  <Route path="/" component={Display} />
                  <Route path="/upload" component={Upload} onEnter={requireAuth} />
                  <Route path="/callback" component={Callback} />
              </Router>
          </div>
      )
  }
  
  ReactDOM.render(<Root />, document.getElementById('root'));
  registerServiceWorker();
  