If you ever have needed to use the requestAnimationFrame API in an async method where you wait for an animation frame before executing additional logic, the callback nature of it might get annoying. With a super small wrapper, you can make a function that returns a promise instead!
Bits and bytes of code
Bytes is my collection of short-form posts, tips, and things I learn as I build software.