map is not a function in reactJS

后端 未结 0 1436
[愿得一人]
[愿得一人] 2020-12-02 16:09

When I did a console.log(response.data), it returned 2 datasets namely post and user:

 const [dbdata,setDBData] = useState([])

useEffect(async() => {
             


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