1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/components/table.js
2015-05-20 11:24:29 +02:00

23 lines
498 B
JavaScript

import React from 'react';
import TableItem from './table_item';
let Table = React.createClass({
render() {
return (
<ul>
{this.props.pieceList.map((piece, i) => {
return (
<li key={i}>
<TableItem piece={piece} />
</li>
);
})}
}
</ul>
);
}
});
export default Table;