Error Boundaries

Safeguarding against API Anomalies and Malformed Data

Class component feature for handling error. It catches errors in the components children, providing a fallback mechanism.

  1. Creating an ErrorBoundary Component if user give an invalid pet ID.

  2. Applying ErrorBoundary to details component.

Last updated