UNPKG
cosmer
Version:
latest (1.0.0)
1.0.0
**¡Aplicaciones para dispositivos moviles
cosmer
/
src
/
components
/
ListOfCategories
/
index.js
14 lines
(12 loc)
•
291 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
React
from
'react'
import
{
Category
}
from
'../Category'
import
{
List
,
Item
}
from
'./styles'
export
const
ListOfCategories
= (
) => {
return
(
<
List
>
{ [1,2,3,4].map(category =>
<
Item
key
=
{category.id}
>
<
Category
/>
</
Item
>
) }
</
List
>
) }