mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
23 lines
498 B
JavaScript
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; |