Catching rendering errors with an error boundary