@berlitz/error-boundary
v2.1.13
Published
ErrorBoundary component for the Max Design System
Downloads
6,301
Readme
ErrorBoundary
Catches uncaught errors in any child component and renders a nice warning message.
Installation
yarn add @berlitz/error-boundary
Props
| Argument | Type | Required | Default | Example | | --------- | ---- | -------- | ------- | ------- | | title | String | No | | | | summary | String | No | | | | buttonLabel | String | No | | |
Usage
import ErrorBoundary from '@berlitz/error-boundary'
const MyApp = () => (
<ErrorBoundary>
<MyComponentThatThrowsErrors summary="Call our customer service team on 1800 123 123" />
</ErrorBoundary>
)