Skip to content

Instantly share code, notes, and snippets.

@jamestthompson3
Last active May 13, 2018 17:32
Show Gist options
  • Save jamestthompson3/050101c8a8d6e1fcc713c07b5bb7df66 to your computer and use it in GitHub Desktop.
Save jamestthompson3/050101c8a8d6e1fcc713c07b5bb7df66 to your computer and use it in GitHub Desktop.
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