Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created April 7, 2015 03:26
Show Gist options
  • Save mattdeboard/7147a021dbf0517270af to your computer and use it in GitHub Desktop.
Save mattdeboard/7147a021dbf0517270af to your computer and use it in GitHub Desktop.
renderResultRows: function*() {
const results = this.state.results;
for (var result in results) {
yield <SearchResult {...result} />
}
},
// return results.map(function(result) {
// return (
// <SearchResult {...result} />
// );
// });
// },
render: function() {
return (
<div id="DataListing">
<hr />
<table className="table table-striped" id="DataListTable">
<TableHeading />
<tbody>
{this.renderResultRows()}
</tbody>
</table>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment