JavaScript React Basics Understanding State Bind Event Handlers to Components

Daniel Cranney
Daniel Cranney
11,596 Points

If I +1 to a given player, how do I then access the player's name to show console.log('Guil's score is 1')?

This course is quite tricky, but I think I get it. I'm just playing around with it to see how you access different properties.

Let's say I give a player +1, how would I console.log their name followed by their score? I know I can print (console.log(this.state.score) but cannot access their name (the value).

Any ideas? Thanks!