-
-
Save jevakallio/384d4c7ce62b402332c0 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 Item = React.createClass({ | |
render() { | |
return <li>{this.props.value}</li>; | |
} | |
}); | |
const List = React.createClass({ | |
render() { | |
return <ul> | |
{ this.props.items.map(item => <Item value={item.value} />) } | |
<ul>; | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment