Created
May 22, 2017 17:51
-
-
Save aurels/8553e771fb4f1d6ce94f254e414122f4 to your computer and use it in GitHub Desktop.
mapDispatchToProps
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 mapDispatchToProps = { | |
setCurrentTab: albumActions.setCurrentTab | |
} | |
const mapDispatchToProps = (dispatch) => { | |
return { | |
setCurrentTab: (tab) => { | |
dispatch(albumActions.setCurrentTab(tab)) | |
} | |
} | |
} | |
const mapDispatchToProps = (dispatch) => { | |
return bindActionCreators({ | |
setCurrentTab: albumActions.setCurrentTab, | |
setCurrentTab2: (tab) => { | |
return albumActions.setCurrentTab(tab) | |
} | |
}, dispatch) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment