Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 437 Bytes

File metadata and controls

24 lines (18 loc) · 437 Bytes

@adhawk/react-error-boundary

This packages export a React component which will wrap React components to catch errors. A user is shown a dialog to give feedback when they experience an error.

Setup

yarn add @adhawk/error-boundary

Usage

import { ErrorBoundary } from "@adhawk/error-boundary";

ReactDOM.render(
  <ErrorBoundary>
    <App />
  </ErrorBoundary>,
  document.querySelector("root"),
);