Skip to content

Instantly share code, notes, and snippets.

@juhaelee
Last active September 1, 2016 16:06
Show Gist options
  • Save juhaelee/1fb0fd4affbcbb0bfec7ef0e7eacbc95 to your computer and use it in GitHub Desktop.
Save juhaelee/1fb0fd4affbcbb0bfec7ef0e7eacbc95 to your computer and use it in GitHub Desktop.
// 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