{"size": 431, "ext": "js", "max_stars_repo_path": "APP-pkgs/ui-home-module/src/App.js", "max_stars_repo_name": "pratapdd/-microfe", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "APP-pkgs/ui-home-module/src/App.js", "max_issues_repo_name": "pratapdd/-microfe", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "APP-pkgs/ui-home-module/src/App.js", "max_forks_repo_name": "pratapdd/-microfe", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.6842105263, "max_line_length": 57, "alphanum_fraction": 0.5568445476}
import { Route, Router, Switch } from 'react-router-dom';

import { Home } from './components/Home';
import { News } from './components/News';
import React from 'react';

export default ({ history }) => {
  return (
    <div>
      <Router history={history}>
        <Switch>
          <Route exact path="/news" component={News} />
          <Route path="/" component={Home} />
        </Switch>
      </Router>
    </div>
  );
};
