Passing props as parameter to the onClick event : I am working on a React project. I am having a div in my component. I give a key to this div using uuid.v4() function (generates random number). Now when I click this div, I want to send this key as a parameter to click event. I am not able to solve how to sent the key to the click event when they are of same component. I am trying to do it like this

    <div className="img-scroll">
                            {this.state.imageSearchResults.items.map((item, ind) => {
                                return <div className="person-image"
                                            key={uuid.v4()}
                                            onClick={()=>{this.onGoogleImageSelect()}}
                                            style={{backgroundImage:`url(${item.link})`}}>
                                </div>
                            })}
                        </div>

click event function

 

    onGoogleImageSelect(e){
            console.log(e.target.key)
        }

This gives me error 

     Uncaught TypeError: Cannot read property 'target' of undefined

How can I send that key to the click event?