Created
August 23, 2016 08:53
-
-
Save ArcanisCz/04a6dce6a2ad66382dedcffc73edde80 to your computer and use it in GitHub Desktop.
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 Component = ({msg}) => ( | |
<div> | |
<h1>{msg.overview}</h1> | |
... | |
</div> | |
); | |
const mapStateToProps = (state) => ({ | |
... | |
}); | |
const mapDispatchToProps = (dispatch) => ({ | |
... | |
}); | |
const mapMessagesToProps = { | |
overview: "bu.campaign.architecture.view.label.overview", | |
objectives: "bu.campaign.architecture.view.label.objectives", | |
customer: "bu.campaign.architecture.view.label.customer", | |
... | |
}; | |
export default util.connect({ | |
mapStateToProps, | |
mapDispatchToProps, | |
mapMessagesToProps | |
})(Component); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment