Integrations · JavaScript framework

Pagerless for React

An error boundary, or React's root error options. Start the client first with the browser or React Native SDK.

Set up

npm i pagerless
import { PagerlessErrorBoundary } from "pagerless/react";

<PagerlessErrorBoundary fallback={<p>Something went wrong.</p>}>
  <App />
</PagerlessErrorBoundary>
or on the root
createRoot(el, { onUncaughtError: reactErrorHandler(), onCaughtError: reactErrorHandler() });

What it catches

  • Errors thrown while rendering components.
  • Uncaught errors and failing fetch calls from pagerless/browser.

Questions

Which React versions?

The boundary needs React 16.8 or newer. The root options are React 19's.

Updated .

Free for you and one backup · 3 apps · no card

Sleep through the small stuff.

Run one command in your repo. Pagerless shows every change before it makes it.

npx pagerless connect