Skip to content

Instantly share code, notes, and snippets.

@vsnguyen
Last active September 23, 2020 17:14
Show Gist options
  • Save vsnguyen/65a7fb138324db513b448b955ee9bba5 to your computer and use it in GitHub Desktop.
Save vsnguyen/65a7fb138324db513b448b955ee9bba5 to your computer and use it in GitHub Desktop.
Blahblah
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