useStateWithPromise: a custom hook to await state updates of useState
Originally posted on my blog.           The Problem   The general problem is that we want to wait...
Tags: react, webdev, typescript, hooks