Last active
February 19, 2017 18:01
-
-
Save graphan/0522ac7083f1a98586c3ab437135200b to your computer and use it in GitHub Desktop.
Creating Apollo and Redux Containers with Recompose
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
import { compose, withHandlers } from 'recompose'; | |
// Component Code here | |
export default compose( | |
connect(mapStateToProps), | |
graphql(PAGE_QUERY, getOptions(['posts'])), | |
withLoadingComponent, | |
withHandlers(handlers) | |
)(Page); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment