Created
October 6, 2020 18:27
-
-
Save matiasfha/ade48b613d2aa7dc7ec1456f8ef51a3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DummyComp = ({datos}) =>{ | |
return <ul> | |
{datos.map((campeon)=>( | |
<li>{campeon.name}</li> | |
))} | |
</ul> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
En caso de que el arreglo datos tenga una forma tipo
[{ Nombre1: {}, Nombre2:{}]
Se puede usar
`
const DummyComp = ({datos}) =>{
}
`
O combinar map con Object.keys