{"size": 884, "ext": "js", "max_stars_repo_path": "src/App.js", "max_stars_repo_name": "HYEOK999/d-code-feed", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/App.js", "max_issues_repo_name": "HYEOK999/d-code-feed", "max_issues_repo_issues_event_min_datetime": "2020-03-20T06:00:38.000Z", "max_issues_repo_issues_event_max_datetime": "2020-04-01T14:24:08.000Z", "max_forks_repo_path": "src/App.js", "max_forks_repo_name": "HYEOK999/d-code-feed", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 32.7407407407, "max_line_length": 73, "alphanum_fraction": 0.67760181}
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import { ConnectedRouter } from 'connected-react-router';
import Home from './pages/Home';
import Feed from './pages/Feed';
import FeedDetail from './pages/FeedDetail';
import NotFound from './pages/NotFound';
import ErrorBoundary from 'react-error-boundary';
import { history } from './redux/create';

const ErrorFallbackComponent = ({ error }) => <div>{error.message}</div>;

const App = () => (
  <ErrorBoundary FallbackComponent={ErrorFallbackComponent}>
    <ConnectedRouter history={history}>
      <Switch>
        <Route exact path="/feed/:feedId" component={FeedDetail} />
        <Route exact path="/feed" component={Feed} />
        <Route exact path="/" component={Home} />
        <Route component={NotFound} />
      </Switch>
    </ConnectedRouter>
  </ErrorBoundary>
);

export default App;
