File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -8,27 +8,17 @@ import './app.styl';
8
8
*/
9
9
export default class List extends Component {
10
10
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 ) } /> ) ;
20
14
}
21
15
return (
22
16
< div >
23
17
< h1 > Here's my list</ h1 >
24
- < << << << HEAD
25
- { listArr }
26
- = === ===
27
- { bunchOfPics }
18
+ { bunchOfProducts }
28
19
{ /* <ListItem />
29
20
<ListItem />
30
21
<ListItem /> */ }
31
- > >>> >>> ff1de9f113946f852ded727878248e3f6fe66fe8
32
22
</ div >
33
23
) ;
34
24
}
You can’t perform that action at this time.
0 commit comments