Amiga Guru Meditation
Edit page
Components
AmigaErrorBoundaryBasic usageExampleProps
Get Started

AmigaErrorBoundary

You may use the AmigaErrorBoundary as a ErrorBoundary

Basic usage

<AmigaErrorBoundary>
... your components
</AmigaErrorBoundary>

Set true the show prop

Of course, you may use it to display any catchable error in your children components

<AmigaErrorBoundary show={true} error={"Hello, I'm error"}>
... your components
</AmigaErrorBoundary>

You may also change the appearance

Set true the show prop and change the color

Example

AmigaErrorBoundary Example

Props

error
any
errorInfo
any
backgroundColor
string | undefined
#111
color
string | undefined
#b00
show
boolean | undefined
false