# bvaughn/react-error-boundary

Simple reusable React error boundary component

Repository: https://github.com/bvaughn/react-error-boundary
Canonical: https://ross.abutalabs.com/products/react-error-boundary
Homepage: https://react-error-boundary-lib.vercel.app
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-15T16:31:41+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 98, longevity 100
- inputs: {"age_days": 3333, "days_push": 18, "days_rel": 18, "gap_med": 27, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7984, forks 229 (observed 2026-08-28T04:10:10.551644+00:00)

## What it is
A reusable React error boundary component that catches rendering errors and displays fallback UI. It supports all React renderers including React DOM and React Native.

## Use cases
- show a fallback UI when a React component fails to render
- catch rendering errors in React apps
- retry rendering after an error with resetErrorBoundary
- log rendering errors to an error reporting service
- handle async and event handler errors in React

## When to choose
- you need a battle-tested error boundary for React DOM or React Native
- you want declarative fallback UI with reset/retry support
- you need to forward caught errors from event handlers or async code to a boundary

## When to avoid
- you need to catch errors during server-side rendering
- you need to catch errors in event handlers or async code without additional wiring
- your project does not support ES Modules and you cannot use version 5

## Facets
- artifact type: library
- maturity: stable
- function: error-handling, ui-components
- domain: frontend, web-development, developer-tools
- platform: browser, cross-platform
- tags: react, error-boundary, fallback-ui, react-native, typescript, nodejs

## Member repositories
- bvaughn/react-error-boundary (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:10.551644+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:32:34.540785+00:00, confidence not recorded.
  - readme: https://github.com/bvaughn/react-error-boundary (fetched 2026-08-28T04:10:10.551644+00:00, sha b9f7384f024c)
  - homepage: https://react-error-boundary-lib.vercel.app (fetched 2026-08-29T08:29:52.339197+00:00, sha db03e04d1717)
  - registry_npm: https://registry.npmjs.org/react-error-boundary (fetched 2026-08-29T08:29:52.348469+00:00, sha 68db3f440e25)
- Data as of 2026-08-30T08:39:29.467469+00:00.
