Skip to content

Instantly share code, notes, and snippets.

@fakiolinho
Created April 19, 2018 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakiolinho/2e704c6ff868fe092231a9cc6297849c to your computer and use it in GitHub Desktop.
Save fakiolinho/2e704c6ff868fe092231a9cc6297849c to your computer and use it in GitHub Desktop.
import React from 'react';
const renderItemsText = items => (
items.length > 0 ? <p>Print sth since we have some items in our list</p> : null
);
export default ({ items }) => (
<div>
{renderItemsText(items)}
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment