Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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