Skip to content

Instantly share code, notes, and snippets.

@nanlabsweb
Last active October 12, 2018 18:05
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 nanlabsweb/4dea4066613a68049af53c9a809c43f9 to your computer and use it in GitHub Desktop.
Save nanlabsweb/4dea4066613a68049af53c9a809c43f9 to your computer and use it in GitHub Desktop.
import { ageSelector, regionSelector, isEligibleSelector} from './CoolModuleSelectors.js';
(...)
const mapStateToProps = state => ({
age: ageSelector(state),
region: regionSelector(state),
isEligible: isEligibleSelector(state),
});
export default connect(mapStateToProps)(AwesomeComponent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment