Created
April 7, 2015 03:26
-
-
Save mattdeboard/7147a021dbf0517270af 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
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