Not sure where I went wrong, but a push in the right direction would be appreciated. Thanks.
changeColor: function () {
var changeColor = this.state.color == yellow ? green : yellow;
this.changeColor({ color: yellow });
},
Not sure where I went wrong, but a push in the right direction would be appreciated. Thanks.
changeColor: function () {
var changeColor = this.state.color == yellow ? green : yellow;
this.changeColor({ color: yellow });
},
hint: you left out the setState method
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.