5/7 Call this.setState from Another Function Part 4

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

1 Like

Wow, the one little thing I overlooked. Thanks @npup04

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.