I\'m working on a react project where I have created an API and that I want to use for my react project, I\'m dealing with react hooks and not able to call API correctly. I