CommentJan 24, 2018
Hi Tyler, what do u feel about updating state via the callback method. Example, this.setState({count: this.state.count +1}, () => { if(this.state.count % 2 === 0){ this.setState({countType: "even" .... }}) It looks a little "hacky"? Does it suffer from any performance issues? Is there a cleaner way to do this?