How to return an API array count from a fetch function in Reactjs

前端 未结 0 1913
梦谈多话
梦谈多话 2020-12-24 05:16

I have a function in my functional component

const getParams = (id) => {

    fetch(getQueryPath+id)
          .then(response => response.json())
               


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