JSFiddle - React, Tailwind, and code Playground
JavaScript
const service = async () => await Promise.resolve(123);
const func = async () => {
const res1 = await service();
service().then(res2 => console.log(res2));
console.log(res1);
}
func();