Created
October 11, 2018 19:28
-
-
Save prettydiff/a00644187cafeb67c9da2c24c0079042 to your computer and use it in GitHub Desktop.
react question
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
var List = React.createClass({ | |
renderList: function () { | |
return this.props.items.map(function (item) { | |
return <ListItem item={value} key={keyvalue.id} />; | |
}); | |
}, | |
render: function () { | |
return <ul className="List"> | |
this.renderList() | |
</ul> | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment