Artist component (ongoing)

This commit is contained in:
Rodrigo Pinto 2019-12-14 18:05:19 -05:00
commit 7c9139f2ee
5 changed files with 897 additions and 6 deletions

17
src/components/Artist.jsx Normal file
View file

@ -0,0 +1,17 @@
import React from 'react'
function Artist({ props }) {
return (
<div className='artist'>
{props.images.length > 0 && (
<img src={props.images[0].url} style={{height:150}} />
)}
<p>{props.name}</p>
<p>Popularity: {Math.floor(props.popularity/20)}</p>
<p>Followers: {props.followers.total}</p>
<p>Id: {props.id}</p>
</div>
)
}
export default Artist