RAMP interview question

React coding question regarding errors in the app