componentDidCatch receives the error and error information, making it a common place to log errors to a reporting service.
Question 2 of 20 in Error Boundaries Quiz