Spiceblue interview question

How to write jsx and code how do you fetch data from api