Julius Baer Interview Question

Write a simple react component get data from API and render. How you handle exceptions?