Yeah, I think I over-reacted to the introductory line of 'Ever needed to wire up a confirmation dialog in React?' which colored my reading of the article.
The author explained that it's just a hook to introduce the concept of state machines, but this kind of complexity seems to be cheered on, and you'll easily find code like this, or worse, in production apps.
The author explained that it's just a hook to introduce the concept of state machines, but this kind of complexity seems to be cheered on, and you'll easily find code like this, or worse, in production apps.