Skip to content

Instantly share code, notes, and snippets.

@bjankord
Created October 2, 2018 11:55
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 bjankord/c973ac0e1d8df06aeeb281161ae438ee to your computer and use it in GitHub Desktop.
Save bjankord/c973ac0e1d8df06aeeb281161ae438ee to your computer and use it in GitHub Desktop.
if (!this.state.areTranslationsLoaded) return React.createElement('div', null, 'Translations are loading');
return React.createElement(
I18nProvider,
{ ...customProps, locale: this.state.locale, messages: messages },
children
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment