Created
March 7, 2023 21:10
-
-
Save douglasabnovato/daa7a24d8c1d5d41bc9ea78cb1eef7ad to your computer and use it in GitHub Desktop.
um prop de name para AnimalCard
This file contains 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
import React from 'react'; | |
... | |
function App() { | |
return ( | |
<div className="wrapper"> | |
<h1>Animals</h1> | |
{data.map(animal => ( | |
<AnimalCard | |
key={animal.name} | |
name={animal.name} | |
/> | |
))} | |
</div> | |
) | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment