My codesandbox link is here.
https://lygfq.csb.app/
async/await is just syntactic sugar for promises: it is exactly the same, it’s just an improved syntax that allows you to write async code in a way that looks even more sequential. await someValue
is effectively exactly the same as Promise.resolve(someValue)
, it returns a promise.