Created
August 22, 2018 01:37
-
-
Save geta6/e130cae7ac988ce29ac194fd7211fdd4 to your computer and use it in GitHub Desktop.
This file contains 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 { translate } from 'react-i18next'; | |
interface Props { | |
t?: any; | |
}; | |
export const MyComponent = (props: Props) => { | |
return ( | |
<div>{props.t('translated')}</div> | |
); | |
}; | |
export default translate()(MyComponent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment