I am trying to update the react state in functional component using API, However somehow its not getting updated. I am not sure what is missing from my side. Can someone hel