27 May 2018 by Dave Ceddia
Ahh, the many ways of initializing state. It can be confusing. Do you put the state = {...} directly inside the class, or do you write a constructor and say this.state = { ... } inside the constructor? And do you need to have a constructor at all?