try the same error handling process in react and dreact