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
1<tbody>
2 {[...Array(10)].map((x, i) =>
3 <ObjectRow key={i} />
4 )}
5</tbody>
6
1var rows = [];
2for (var i = 0; i < numrows; i++) {
3 rows.push(ObjectRow());
4}
5return tbody(rows);
6