ErrorBoundary
Example
import { components } from "replugged";
const { ErrorBoundary } = components;
<ErrorBoundary>{/* Your components here */}</ErrorBoundary>;
Props
Name | Type | Default | Description |
---|---|---|---|
fallback | ReactNode | Fallback elements to show | |
onError | (error: Error, errorInfo: ErrorInfo) => void | Function ran when an error is triggered | |
silent | boolean | false | Whether to not print the error to console |