Skip to content

Support useIntl

Compare
Choose a tag to compare
@akameco akameco released this 22 Aug 12:36
· 165 commits to master since this release

useIntl support #72

import { useIntl } from 'react-intl'

const MyComponent = () => {
  const intl = useIntl()
  const label = intl.formatMessage({ defaultMessage: 'Submit button' })
  return <button aria-label={label}>{label}</button>
}

v2.1.0...v2.2.0