1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

fill unordered list

This commit is contained in:
Tim Daubenschütz 2015-05-20 11:24:29 +02:00
parent ac59d109a2
commit 06d0b7abe6
3 changed files with 13 additions and 3 deletions

View File

@ -9,7 +9,6 @@
</head>
<body>
<div id="main"></div>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="build/app.js"></script>
</body>
</html>

View File

@ -6,7 +6,15 @@ let Table = React.createClass({
render() {
return (
<ul>
<TableItem />
{this.props.pieceList.map((piece, i) => {
return (
<li key={i}>
<TableItem piece={piece} />
</li>
);
})}
}
</ul>
);
}

View File

@ -4,7 +4,10 @@ let TableItem = React.createClass({
render() {
return (
<ul>
<TableItem />
<li>something</li>
<li></li>
<li></li>
<li></li>
</ul>
);
}