Tesla interview question

How would you call an API in React