Last active
August 16, 2018 15:25
-
-
Save maecapozzi/caef7d9da5d85c3eeef0509d11149d91 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
const Child = () => { | |
// Family Consumer uses the | |
// Function as a Child pattern | |
return <FamilyConsumer> | |
// context is the object with lastName | |
// on it. It gets passed as an argument | |
{context => <p>{context}</p>} | |
</FamilyConsumer>; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment