I created a div with onClick event.
This event can’t access the state for some reason.
https://gist.github.com/JohnnyBizzel/30f9be9dc5e29aefdcf21e0014b12ce3
Specifically
handleClick() {
console.log("Chart data: " + this.state.data.datasets);
}
is called from a div line 132
<div onClick={this.handleClick}>Change Chart</div>
but state is not accessible in the console.log.
-------------------- EDIT ----------------------
Just needed a bind(this)!?