Skip to content

Instantly share code, notes, and snippets.

@unsign3d
Created September 7, 2018 09:09
Show Gist options
  • Save unsign3d/a63f2b508523c0b5549f60bf0403aaed to your computer and use it in GitHub Desktop.
Save unsign3d/a63f2b508523c0b5549f60bf0403aaed to your computer and use it in GitHub Desktop.
import connect from '../connect'
import Cat from './Cat'
const mapContextToProps = (props) => (context) => ({
name: props.name,
family: context.data.family
})
const ConnectedCat = (props) => (connect(Cat, mapContextToProps(props)))
export default ConnectedCat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment