Last active
March 22, 2017 07:10
-
-
Save mihir0x69/28990eef7cbc995a07f744cd07299210 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
const Parent = (props) => ( | |
<div> | |
{props.children} | |
</div> | |
) | |
const Child = (props) => ( | |
<div>Child No. {props.number}</div> | |
) | |
const Wrapper = (props) => ( | |
<div> | |
<Parent> | |
<Child number={1} /> | |
<Child number={2} /> | |
<Child number={3} /> | |
<Child number={4} /> | |
</Parent> | |
</div> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment