Last active
September 1, 2016 16:06
-
-
Save juhaelee/1fb0fd4affbcbb0bfec7ef0e7eacbc95 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
// ex 1: | |
render(){ | |
return ( | |
<Component children={(val) => <ChildComponent value={val} />} /> | |
) | |
} | |
// ex 2: | |
render() { | |
return ( | |
<Component> | |
{(val) => <ChildComponent value={val} />} | |
</Component> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment