Skip to content

Instantly share code, notes, and snippets.

@k88hudson
Created January 19, 2016 19:00
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 k88hudson/df2b021a42a28cb8e552 to your computer and use it in GitHub Desktop.
Save k88hudson/df2b021a42a28cb8e552 to your computer and use it in GitHub Desktop.
const {InjectIntl} = require('react-intl');
const Foo = React.CreateClass({
render: () {
<div>{this.props.intl.formatMessage('string-key')}</div>
}
});
module.exports = InjectIntl(Foo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment