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