Last active
May 13, 2018 17:32
-
-
Save jamestthompson3/050101c8a8d6e1fcc713c07b5bb7df66 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
import { compose, withState, withHandlers } from 'recompose' | |
import { withRouter } from 'react-router-dom' | |
const StreamIndex = compose( | |
withState('userList', 'updateUserList', []), | |
withHandlers({ setUserList: ({ updateUserList }) => users => updateUserList(state => users) }), | |
withRouter, | |
load, | |
selectUser | |
)(IndexPage) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment