Last active
September 23, 2020 17:14
-
-
Save vsnguyen/65a7fb138324db513b448b955ee9bba5 to your computer and use it in GitHub Desktop.
Blahblah
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 Comp3 = ({item}) => { | |
return( | |
<div>simple return</div> | |
) | |
} | |
const Comp2 = ({data}) => { | |
return( | |
<React.Fragment> | |
{data.map(item, index) => <Comp3 item={item} />} | |
</React.Fragment> | |
) | |
} | |
const Comp1 = (props) => { | |
const newComp = (item) => { | |
return( | |
<div>some crazy layout</div> | |
) | |
} | |
return( | |
<Comp2 data={props.data} /> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment