Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
434 B
1
Indexable
Never
import {Link} from 'react-router-dom'

function PlayerItem({player}) {
    return (
        <div className='player'>
            <div>{player.fullName}</div>
            <div>{player.team}</div>
            <div>{player.position}</div>
            <div>{player.raiting}</div>
            <Link to={`/player/${player._id}`} className='btn btn-reverse btn-sm'> View
             </Link>
        </div>
    )
}

export default PlayerItem