Skip to content

Instantly share code, notes, and snippets.

@hartzis
Last active December 29, 2015 01:22
Show Gist options
  • Save hartzis/b1ed6d811e6948b293b9 to your computer and use it in GitHub Desktop.
Save hartzis/b1ed6d811e6948b293b9 to your computer and use it in GitHub Desktop.
simply test react components
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