@adhawk/react-error-boundary

A React component for catching and reporting errors

Usage no npm install needed!

<script type="module">
  import adhawkReactErrorBoundary from 'https://cdn.skypack.dev/@adhawk/react-error-boundary';
</script>

README

@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"),
);