Skip to content

Instantly share code, notes, and snippets.

@AmirSa12
Created March 9, 2023 12:16
Show Gist options
  • Save AmirSa12/e72a3b5300d27edd015b67f212acf602 to your computer and use it in GitHub Desktop.
Save AmirSa12/e72a3b5300d27edd015b67f212acf602 to your computer and use it in GitHub Desktop.
// Genres issue Fix + Syles
// ADD THE CODE BELOW
const genStyles = {
color: 'black',
fontSize: '15px',
borderRadius: '20px',
border: '1px solid black',
padding: '4px',
margin: '5px',
display: 'inline-block',
textDecoration: 'none',
cursor: 'pointer'
}
// Add in the return section on the 'movieGenres' div
<div>
<p>Genres</p>
</div>
{genBring.map((gen, id)=>(
<div key={id} style={genStyles}>
{gen.name}
</div>
))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment