Arcadia interview question

How do you handle errors in react?