Skip to content

Instantly share code, notes, and snippets.

@alieslamifard
Created February 28, 2019 13:37
Show Gist options
  • Save alieslamifard/9809bed0bb399c1e03175b24e91dba8a to your computer and use it in GitHub Desktop.
Save alieslamifard/9809bed0bb399c1e03175b24e91dba8a to your computer and use it in GitHub Desktop.
if ( foo?.bar?.length ) {
return foo.bar.map(items => <Component data={items.hey} />)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment