Reading Class 20 - meron-401n14/seattle-javascript-401n14 GitHub Wiki
When working with setState(), these are the major things you should know:
- Update to a component state should be done using setState()
- You can pass an object or a function to setState()
- Pass a function when you can to update state multiple times Do not depend on this.state immediately after calling setState() and make use of the updater function instead.