Created
September 4, 2016 22:12
-
-
Save choonkending/7da9fd006df752680ad51f58440bbc40 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
class MyComponent extends React.Component { | |
render() { | |
return ( | |
<div> | |
{this.props.children('Cruisin down the street')} | |
</div> | |
); | |
} | |
} | |
// In the parent component | |
<MyComponent> | |
{ value => <div>{`${value} in my 64`}</div> } | |
</MyComponent> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment