0

My map function:

const artists = this.props.result.artists.map((artist) => {
        return <Link value={artist.name} className='artist-title'>{artist.name}</Link>
    });

When displayed with:

artists.join(', ');

Results in: [object Object], [object Object]

When simply displayed with:

artists

Results in: EminemNate Dogg

My goal is: Eminem, Nate Dogg

How would I go about doing that?

Lux-Coded
  • 3
  • 2

0 Answers0