Last active
February 23, 2018 03:01
-
-
Save andycarrell/9f248e8b2818de13a765d9c6e59d473b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const AppContextConsumer = ({ children }) => ( | |
| <PermissionContext.Consumer> | |
| {permissions => ( | |
| <ThemeContext.Consumer> | |
| {theme => children({ permissions, theme })} | |
| </ThemeContext.Consumer> | |
| )} | |
| </PermissionContext.Consumer> | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment