Created
July 27, 2018 12:42
-
-
Save amanjuneja3012/1f1823451e62dc34a4c3f62d8b445157 to your computer and use it in GitHub Desktop.
Code to reduce mapStateToProps function boilerplate
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
const mapStateToProps = (state) => ({ ...customMapState(state, 'IndentReducer') }); | |
export default connect(mapStateToProps, actions)((customPropsToJSIfNeeded(Indent))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment