Skip to content

Instantly share code, notes, and snippets.

@ArcanisCz
Created August 23, 2016 08:53
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 ArcanisCz/04a6dce6a2ad66382dedcffc73edde80 to your computer and use it in GitHub Desktop.
Save ArcanisCz/04a6dce6a2ad66382dedcffc73edde80 to your computer and use it in GitHub Desktop.
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