{"size": 584, "ext": "js", "max_stars_repo_path": "app/src/components/App.js", "max_stars_repo_name": "hwaterke/redux-api-offline-example", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/src/components/App.js", "max_issues_repo_name": "hwaterke/redux-api-offline-example", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/src/components/App.js", "max_forks_repo_name": "hwaterke/redux-api-offline-example", "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": 23.36, "max_line_length": 74, "alphanum_fraction": 0.6746575342}
import React from 'react';
import {createOfflineStore} from 'redux-offline';
import {Provider} from 'react-redux';
import offlineConfig from 'redux-offline/lib/defaults';
import {appReducer} from '../reducer/index';
import {ListScreen} from './ListScreen';

const config = {
  ...offlineConfig,
  retry: (action, retries) => 4000,
  rehydrate: false
};

const store = createOfflineStore(appReducer, undefined, (a) => a, config);

export class App extends React.Component {
  render() {
    return (
      <Provider store={store}>
        <ListScreen />
      </Provider>
    );
  }
}
