I want to test the API call in my React component and also tried few ways by surfing the net.
MyComponent:
export const API = {