1render: function() {
2 const elements = ['one', 'two', 'three'];
3 return (
4 <ul>
5 {elements.map((value, index) => {
6 return <li key={index}>{value}</li>
7 })}
8 </ul>
9 )
10}
11
1var rows = [];
2for (var i = 0; i < numrows; i++) {
3 rows.push(ObjectRow());
4}
5return tbody(rows);
6