How to use Promise.all + Array.prototype.map() to fetch different data

后端 未结 0 1334
花落未央
花落未央 2020-12-06 19:23

I have an array of IDs and I\'m trying to fetch data with each of it and return it all as a component state.

let urls = commentsIds.map(id => `https://hack         


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