Last active
December 29, 2015 01:22
-
-
Save hartzis/b1ed6d811e6948b293b9 to your computer and use it in GitHub Desktop.
simply test react components
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 Item from './Item'; | |
export function List ({items}) { | |
return ( | |
<div> | |
<p>Number in List: <span>{items.length}</span></p> | |
{items.map(item => <Item item={item}/>)} | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment