This is a demo to show why so-called "stale closures" is a feature, not an annoyance.
Demo
Blog post: How React Uses Closures to Avoid Bugs
Play with this on codesandbox