Skip to content

Instantly share code, notes, and snippets.

@prettydiff
Created October 11, 2018 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prettydiff/a00644187cafeb67c9da2c24c0079042 to your computer and use it in GitHub Desktop.
Save prettydiff/a00644187cafeb67c9da2c24c0079042 to your computer and use it in GitHub Desktop.
react question
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