How is async&await different from a normal promise?

后端 未结 0 1872
独厮守ぢ
独厮守ぢ 2021-01-20 09:25

So we have this piece of code down here:

export const fetchPosts= async () =>{
   const response= await jsonPlaceholder.get(\'/posts\');
    return {
              


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题