text: import React, { useEffect } from 'react';
  import ReactGA from 'react-ga';
  import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
  
  import Nav from 'components/Nav';
  import Footer from 'components/Footer';
  import Home from 'scenes/Home';
  import Info from 'scenes/Info';
  import Events from 'scenes/Events';
  import Teachers from 'scenes/Teachers';
  import ExternalRoute from 'scenes/ExternalRoute';
  import About from 'scenes/About';
  import { ErrorHOC } from 'scenes/Error';
  
  import corporatePacket from 'assets/EOH_2019_Corporate_Packet.pdf';
  
  const exhibitorRegistration = 'https://goo.gl/forms/KGz0PT04lFHevOio1';
  
  const App = () => {
    useEffect(() => {
      ReactGA.initialize('UA-115295600-2');
      ReactGA.pageview(window.location.pathname + window.location.search);
    }, []);
  
    return (
      <Router>
        <div className="App">
          <Nav />
          <Switch>
            <Route path="/" exact component={Home} />
            <Route path="/events" exact component={Events} />
            <Route path="/transportation" exact component={Info} />
            <Route path="/teachers" exact component={Teachers} />
            <Route path="/sponsor" exact component={ExternalRoute(corporatePacket)} />
            <Route path="/register" exact component={ExternalRoute(exhibitorRegistration)} />
            <Route path="/about" exact component={About} />
            <Route component={ErrorHOC('Page Not Found')} />
          </Switch>
          <Footer />
        </div>
      </Router>
    );
  };
  
  export default App;
  