Skip to content

Instantly share code, notes, and snippets.

@sri-teja
Last active October 15, 2022 06:51
Show Gist options
  • Save sri-teja/475f1866911009d51b8a86f11b466e4b to your computer and use it in GitHub Desktop.
Save sri-teja/475f1866911009d51b8a86f11b466e4b to your computer and use it in GitHub Desktop.
import { injectIntl } from 'react-intl'
const Search = ({ intl: { formatMessage } }) => {
return (
<p>{formatMessage({ id: '<key in the messages dict in locale/<language.js>' })}</p
)
}
export default injectIntl(Search)
import { FormattedMessage } from 'react-intl'
<FormattedMessage id="topBar.profileMenu.hello" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment