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:
parent
ac59d109a2
commit
06d0b7abe6
@ -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>
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
@ -4,7 +4,10 @@ let TableItem = React.createClass({
|
||||
render() {
|
||||
return (
|
||||
<ul>
|
||||
<TableItem />
|
||||
<li>something</li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user