Last active
July 24, 2020 21:42
-
-
Save nsantos16/8da556d82904423cab8e812a921d68fa to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ListItem = ({ item }) => ( | |
<div> | |
<span>{item}</span> | |
</div> | |
); | |
const List = ({ items = [] }) => ( | |
<div className="list-component"> | |
<ListTitle title="List component" /> | |
<div className="list-component-items"> | |
{items.map(item => ( | |
<ListItem item={item} /> | |
))} | |
</div> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment