Created
December 28, 2017 17:44
-
-
Save Abazhenov/3f09ce0592cfb2368c4e20f630accd57 to your computer and use it in GitHub Desktop.
decorators for react-redux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { connect } from 'react-redux' | |
const mapStateToProps = (mapStateToProps, options) => { | |
return connect(mapStateToProps, {}); | |
} | |
const mapDispatchToProps = (mapDispatchToProps, options) => { | |
const mapStateToProps = () => ({}); | |
return connect(mapStateToProps, mapDispatchToProps); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment