Skip to content

js2me/react-simple-error-boundary

Repository files navigation

React Simple Error Boundary

This is simple ErrorBoundary component

Usage with Component

import { ErrorBoundary } from "react-simple-error-boundary";

<ErrorBoundary errorComponent={YourErrorComponentHandler}>
  <PageOrComponent/>
</ErrorBoundary>

Usage with HOC

import { withErrorBoundary } from "react-simple-error-boundary";

const WrappedPageOrComponent = withErrorBoundary(PageOrComponent, YourErrorComponentHandler);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published