-
Crear un nuevo componente dentro de la carpeta SRC llamado
CounterApp
-
El CounterApp debe de ser un Functional Component
-
El contenido del CounterApp debe de ser:
CounterApp
const heroes = [ | |
{ | |
id: 1, | |
name: 'Batman', | |
owner: 'DC' | |
}, | |
{ | |
id: 2, | |
name: 'Spiderman', | |
owner: 'Marvel' |