@thinkeloquent/react-exception-guard-base
v0.0.9
Published
An adaptable and robust error boundary component crafted to elevate error management and enhance the overall resilience of React applications. Tailored explicitly for React 18 and beyond, this error boundary effortlessly integrates into your application's
Downloads
2
Readme
@thinkeloquent/react-exception-guard-base
installation:
npm i --save @thinkeloquent/react-exception-guard-base
example
import { ErrorBoundaryBase } from "@thinkeloquent/react-exception-guard-base";
const Component = () => {
<ErrorBoundaryBase>
<error>...</error>
</ErrorBoundaryBase>;
};
import { ErrorBoundaryBase } from "@thinkeloquent/react-exception-guard-base";
const Component = () => {
<ErrorBoundaryBase fallback={<div>This is a custom error message</div>}>
<error>...</error>
</ErrorBoundaryBase>;
};
import {
ErrorBoundaryBase,
SimpleExceptionHandler,
} from "@thinkeloquent/react-exception-guard-base";
const Component = () => {
<ErrorBoundaryBase Fallback={SimpleExceptionHandler}>
<error>...</error>
</ErrorBoundaryBase>;
};