Skip to content

Instantly share code, notes, and snippets.

@diegorodriguesvieira
Created August 31, 2020 13:50
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 diegorodriguesvieira/75bbc92f55f3dac953d4597947b5572b to your computer and use it in GitHub Desktop.
Save diegorodriguesvieira/75bbc92f55f3dac953d4597947b5572b to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import Typography from '@components/Typography';
import { withTranslation } from '@i18n';
class MyComponent extends Component {
render() {
const { $t } = this.props;
return(<Typography>{$t('name')}</Typography>);
}
}
export default withTranslation(MyComponent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment