import React from 'react';
import MainPage from './MainPage'
import RepoPreloader from './RepoPreloader'
import { Route, HashRouter } from 'react-router-dom'
import initializeGoogleAnalytics from '../utils/GATrack'

const App = () => {
  return (
    <HashRouter>
      <Route exact path="/" component={MainPage} />
      <Route path="/preload" component={RepoPreloader} />
    </HashRouter>
  );
}

initializeGoogleAnalytics();
export default App;
