Pregunta de entrevista de PingThings

How would you call an API inside of a React component?