Skip to content

Instantly share code, notes, and snippets.

@MacgyverMartins
Created August 9, 2018 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MacgyverMartins/6522dd02dee46a1eed29da08c08a1fbf to your computer and use it in GitHub Desktop.
Save MacgyverMartins/6522dd02dee46a1eed29da08c08a1fbf to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { rangeCustomersBy } from '../actions/filter.actions';
class MainFilterCont extends Component {
// code
}
const mapDispatchToProps = {
rangeCustomersBy
};
const mapStateToProps = state => ({
filter: state.filter
})
export default connect(
mapStateToProps,
mapDispatchToProps
)(MainFilterCont);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment