Skip to main content

ErrorBoundary

Example

import { components } from "replugged";
const { ErrorBoundary } = components;

<ErrorBoundary>{/* Your components here */}</ErrorBoundary>;

Props

NameTypeDefaultDescription
fallbackReactNodeFallback elements to show
onError(error: Error, errorInfo: ErrorInfo) => voidFunction ran when an error is triggered
silentbooleanfalseWhether to not print the error to console