1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +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> </head>
<body> <body>
<div id="main"></div> <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> <script src="build/app.js"></script>
</body> </body>
</html> </html>

View File

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

View File

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