An open API service indexing awesome lists of open source software.

https://github.com/kentcdodds/react-and-stale-closures

This is a demo to show why so-called "stale closures" is a feature, not an annoyance.
https://github.com/kentcdodds/react-and-stale-closures

classes hooks kcd-edu react

Last synced: 10 months ago
JSON representation

This is a demo to show why so-called "stale closures" is a feature, not an annoyance.

Awesome Lists containing this project

README

          

# React and Stale Closures

This is a demo to show why so-called "stale closures" is a feature, not an
annoyance.

[Demo](https://react-and-stale-closures.netlify.app/)

Blog post: [How React Uses Closures to Avoid Bugs](https://epicreact.dev/how-react-uses-closures-to-avoid-bugs)

[Play with this on codesandbox](https://githubbox.com/kentcdodds/react-and-stale-closures)