Found in [React useState with callback](https://www.robinwieruch.de/react-usestate-callback/) Can't PR because I can't find the article elsewhere on the blog