Created
September 7, 2018 09:09
-
-
Save unsign3d/a63f2b508523c0b5549f60bf0403aaed to your computer and use it in GitHub Desktop.
This file contains 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 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