Last active
February 14, 2019 21:11
-
-
Save QMaximillian/19f5bd3b5cd22ef208a3906a6de6922c to your computer and use it in GitHub Desktop.
Render Prop - SayHelloWithName
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 SayHelloWithName = () => ( | |
<Hello | |
render={({loud, handleLoudness }) => ( | |
<h1> | |
<b onClick={handleLoudness}> | |
{loud ? `${word} Quinn` : `${word.toUpperCase()} Quinn `} | |
</b> | |
</h1> | |
)} | |
/> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment