react-error-boundary
Reusable React Error Boundary component for error handling.
Web frameworks npm MIT
Used in agent projects
75
0.6% of 12,697 public repos built with AI coding agents
Rank in web frameworks
#14 of 26
by use in those projects
Downloads
14.8M
npm, last 7 days, react-error-boundary
GitHub stars
7,993
last push Oct 2, 2026
How react-error-boundary is used
react-error-boundary is a dependency in 75 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.6%), #14 of 26 in web frameworks. The most used alternative there is React. Projects that use it most often also use Tailwind Merge (65.3%), TanStack Query (62.7%), clsx (64.0%).
Often used with react-error-boundary
| Tailwind Merge | 65.3% of react-error-boundary projects · 3.9× more than average |
|---|---|
| TanStack Query | 62.7% of react-error-boundary projects · 6.5× more than average |
| clsx | 64.0% of react-error-boundary projects · 3.6× more than average |
| Class Variance Authority | 57.3% of react-error-boundary projects · 4.1× more than average |
| Lucide React | 66.7% of react-error-boundary projects · 3.4× more than average |
| Radix UI | 56.0% of react-error-boundary projects · 4.7× more than average |
| React | 94.7% of react-error-boundary projects · 2.2× more than average |
| next-themes | 52.0% of react-error-boundary projects · 5.9× more than average |
By coding agent
| Claude Code | 0.6% of projects set up for it |
|---|---|
| GitHub Copilot | 0.7% of projects set up for it |
| Cursor | 0.6% of projects set up for it |
| Gemini CLI | 1.6% of projects set up for it |
| OpenAI Codex | 1.6% of projects set up for it |
Share of public repos configured for each agent that list react-error-boundary as a dependency.
Install
| Package | npm install react-error-boundary |
|---|---|
| Main stacks | Next.js (44), TypeScript / JavaScript (25), Python (3), Rust (1) |
| Example projects | 1600822305/AetherLink, hzrd149/nostrudel, bartstc/vite-ts-react-template, cdavid817/vanehub-ai, sonnylazuardi/sonnylab.com |
Alternatives to react-error-boundary
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| React npm JavaScript library for building interactive user interfaces with components. |
5,510 (43.4%) | 186M | 251K | MIT |
| Next.js npm React framework for production with server-side rendering and static generation. |
2,861 (22.5%) | 66.2M | 143K | MIT |
| next-themes npm Abstraction for managing themes (dark/light mode) in Next.js apps. |
1,116 (8.8%) | 26.9M | 6,333 | MIT |
| React Router npm Declarative routing library for building single-page React applications. |
972 (7.7%) | 44.8M | 56.6K | MIT |
| Vue npm Progressive JavaScript framework for building interactive user interfaces. |
210 (1.7%) | 17.1M | 54.6K | MIT |
| Astro npm Modern static site builder with partial hydration and zero JavaScript by default. |
133 (1.0%) | 7.1M | 63.1K | MIT |
| React Native Web npm React Native APIs and components for web allowing code sharing between web and mobile. |
121 (1.0%) | 7.2M | 22.1K | MIT |
| Angular npm Full-featured web framework with TypeScript, dependency injection and RxJS. |
104 (0.8%) | 5.9M | 101K | MIT |