Created
February 24, 2017 07:17
-
-
Save alexaivars/0169f9ff55c927415630d9ed19d74c2e 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
| 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