Created
April 19, 2018 09:26
-
-
Save fakiolinho/2e704c6ff868fe092231a9cc6297849c to your computer and use it in GitHub Desktop.
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
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