Skip to content

Commit 024a412

Browse files
committed
Add product info component
1 parent 2a3ed07 commit 024a412

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

SSRtest/src/shared/List.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,17 @@ import './app.styl';
88
*/
99
export default class List extends Component {
1010
render() {
11-
<<<<<<< HEAD
12-
const listArr = [];
13-
for (let i = 0; i < 10000; i++) {
14-
listArr.push(<ListItem />)
15-
=======
16-
let bunchOfPics = [];
17-
for (let i=0; i<1000; i++) {
18-
bunchOfPics.push(<ListItem key={i}/>);
19-
>>>>>>> ff1de9f113946f852ded727878248e3f6fe66fe8
11+
let bunchOfProducts = [];
12+
for (let i=0; i<100; i++) {
13+
bunchOfProducts.push(<Product key={i} name={`Thing${i}`} description={'This product is awesome!'} price={Math.floor(Math.random() * 200)} />);
2014
}
2115
return (
2216
<div>
2317
<h1>Here's my list</h1>
24-
<<<<<<< HEAD
25-
{listArr}
26-
=======
27-
{bunchOfPics}
18+
{bunchOfProducts}
2819
{/* <ListItem />
2920
<ListItem />
3021
<ListItem /> */}
31-
>>>>>>> ff1de9f113946f852ded727878248e3f6fe66fe8
3222
</div>
3323
);
3424
}

0 commit comments

Comments
 (0)