英文:
API integration in React but not call API properly
问题
I have my own API I'm using React TypeScript and I want to show my API data into my React table but here the problem is API call not properly response is showing undefined in console.
How to solve this problem?
英文:
I have my own API I'm using React typeScript and I want to show my API data into my react table but here proble is API call not properly response is shows undefined in console.
How to solve this problem?
答案1
得分: 0
你好,Jayprakash,
我认为你可以附上一些屏幕截图或代码片段,以帮助你找到问题。
此外,下面是一个链接,显示了使用fetchAPI进行数据获取的步骤。
https://www.freecodecamp.org/news/how-to-consume-rest-apis-in-react/
你也可以使用axios、react-query等方法。
英文:
Good day Jayprakash,
I think you may attach few screenshots or code snippets to help you spot the issue.
Also, below is a link to show you steps for data fetching using fetchAPI.
https://www.freecodecamp.org/news/how-to-consume-rest-apis-in-react/
You could also use axios, or react-query, ....etc
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论