withTranslation() Higher-order Component
Learn how to access the translation function or i18n instance inside class components.
We'll cover the following...
What is the withTranslation() HOC?
The withTranslation() function will create a higher-order component, which we can pass to the component that is supposed to be translated. The t and i18n props will be passed to this ...