Created
May 27, 2018 15:08
-
-
Save 4nte/fb063c010cd04e3ad946b2b71424c8a0 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 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