Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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