Skip to content

Instantly share code, notes, and snippets.

@carpben
Created April 13, 2019 15:46
Show Gist options
  • Save carpben/8a8046cb09e4a33c7f2ca49ca660abaa to your computer and use it in GitHub Desktop.
Save carpben/8a8046cb09e4a33c7f2ca49ca660abaa to your computer and use it in GitHub Desktop.
const Comp = ({items}) => (
<div className=”list”>
{
items.length?
<ul>
{
items.map( item=> <li>{item.name}</li>) )
</ul>
: <p>No Items found</p>
}
</div>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment