{"size": 508, "ext": "js", "max_stars_repo_path": "src/containers/RootApp.js", "max_stars_repo_name": "vickyzhu2017/calculator-reactJS", "max_stars_repo_stars_event_min_datetime": "2017-03-01T02:34:23.000Z", "max_stars_repo_stars_event_max_datetime": "2017-03-01T02:34:23.000Z", "max_issues_repo_path": "src/containers/RootApp.js", "max_issues_repo_name": "vickyzhu2017/calculator-reactJS", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/containers/RootApp.js", "max_forks_repo_name": "vickyzhu2017/calculator-reactJS", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.1904761905, "max_line_length": 70, "alphanum_fraction": 0.5807086614}
import { connect } from 'react-redux';
import Counter from '../components/Counter/Counter';

const RootApp = connect(
	( state ) => {
		return {
			value : state
		};
	},
	( dispatch ) => {
		return {
			onAdd: (x,y) =>dispatch({ type: 'ADDITION', x:x, y:y}),
			onSubtract: (x,y) => dispatch({ type: 'SUBTRACTION', x:x, y:y}),
			onMultiply: (x,y) => dispatch({ type: 'MULTIPLICATION', x:x, y:y}),
			onDivide: (x,y) => dispatch({ type: 'DIVISION', x:x, y:y})
		};
	}

)( Counter );

export default RootApp;