O'Reilly logo
  • Ben Barreth thinks this is interesting:

Be careful to always use the setState method to update the state of your component’s UI and never manipulate this.state directly


Cover of Pro React


Seems pretty confusing since we've used this.state = {...} multiple times in the example code, but perhaps that was ok because it was only on initial instantiation of the state inside component constructors each time?