Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ConnectedComponent from './ConnectedComponent';
- import {connect} from 'react-redux';
- import {injectIntl, defineMessages} from 'react-intl';
- const messages = defineMessages({
- LABEL: {id: "CONNECTED.COMPONENT.LABEL", defaultMessage: "Label"},
- });
- const mapStateToProps = (state, ownProps) => {
- const { intl } = ownProps;
- return {
- inputLabel: intl.formatMessage(messages.LABEL),
- };
- };
- export default injectIntl(connect(
- mapStateToProps
- )(ConnectedComponent));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement