In Frontend (React, Javascript) By Leigh Halliday February 05, 2018 Leigh Halliday

Converting Callbacks to Async/Await

Async/Await makes working with callbacks seem like ancient history, but you'll still encounter callbacks as you work with older libraries and certain browser APIs which haven't yet been converted. In the article and video I'm linking to below, I'll show how to convert the geolocation.getCurrentPosition API from callbacks to using promises, and therefore the ability to use async/await.

Article on converting callbacks to async/await.