There's function

```
changeSong: function(index) {
    this.setState({currentSongIndex: index };
}

```

I need to run changeSong function passing index as argument by clicking on my div

```
var listTemp = data.map(function(item,index) {

        var listTemp = data.map(function(item,index) {

        return (
            <div key={index} className="eachTrack" onClick={this.changeSong({index})}>
                <span className="duration">{item.duration}</span>
                <a href="#" className="songTemplate" >{item.artist} - {item.track}</a>

            </div>  
        )
    }.bind(this))

```

It just runs my changeSong function 3 times(as much as I have div elements). Now it just running without even passing "index" argument, there's also no event by click.