This is really helpful, and using the callback form of `setState` helped me out recently with a bug…
Andrew Patton
12

Except that the code is difficult to typecheck if you use TypeScript or flow. There are ways around it, but they all have drawbacks (and I’m not willing to sacrifice correctness / robustness for the few characters that it saves me).

Show your support

Clapping shows how much you appreciated Tomas Carnecky’s story.