Skip to content

Instantly share code, notes, and snippets.

@4nte
Created May 27, 2018 15:08
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 4nte/21f5e7c04aa2be7e88acb3a7010322d7 to your computer and use it in GitHub Desktop.
Save 4nte/21f5e7c04aa2be7e88acb3a7010322d7 to your computer and use it in GitHub Desktop.
import Composer from 'react-composer';
<Composer
components={[
<CurrencyConsumer/>,
<LocaleConsumer />,
<ThemeConsumer/>
]}>
{([currency, locale, theme]) => (
<MyComponent currency={currency} locale={locale} theme ={theme} />
)}
</Composer>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment