Last active
August 12, 2020 04:02
-
-
Save amazingandyyy/27ff27cb10298f8054b9f21e1a287102 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { withTranslation } from 'react-i18next'; | |
const { t } = this.props; | |
... | |
{t('testing')} | |
export default withTranslation()(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://react.i18next.com/latest/withtranslation-hoc