Skip to content

Instantly share code, notes, and snippets.

@alexaivars
Created February 24, 2017 07:17
Show Gist options
  • Select an option

  • Save alexaivars/0169f9ff55c927415630d9ed19d74c2e to your computer and use it in GitHub Desktop.

Select an option

Save alexaivars/0169f9ff55c927415630d9ed19d74c2e to your computer and use it in GitHub Desktop.
const React = require('react');
module.exports = function List({ children, ...other }) {
return (
<ul {...other}>
{ React.Children.toArray(children).map((child) => <li key={child.key}>{child}</li> ) };
</ul>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment