{"size": 772, "ext": "js", "max_stars_repo_path": "src/screens/routes.js", "max_stars_repo_name": "yanglinz/reddio", "max_stars_repo_stars_event_min_datetime": "2016-11-20T16:30:41.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-08T12:38:32.000Z", "max_issues_repo_path": "src/screens/routes.js", "max_issues_repo_name": "yanglinz/reddio", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/screens/routes.js", "max_forks_repo_name": "yanglinz/reddio", "max_forks_repo_forks_event_min_datetime": "2021-12-16T22:52:45.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-16T22:52:45.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 29.6923076923, "max_line_length": 73, "alphanum_fraction": 0.689119171}
import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';

import store from 'state/store';
import AppScreen from 'screens/App';
import HomeScreen from 'screens/App/screens/Home';
import ListingScreen from 'screens/App/screens/Listing';

function AppRoutes() {
  const history = syncHistoryWithStore(browserHistory, store);
  return (
    <Provider store={store}>
      <Router history={history}>
        <Route path="/" component={AppScreen}>
          <IndexRoute component={HomeScreen} />
          <Route path="*" component={ListingScreen} />
        </Route>
      </Router>
    </Provider>
  );
}

export default AppRoutes;
