Necodex interview question

How to consume data from an API into a FE app using React