react-errors-boundaries
Installation
SKILL.md
react-errors-boundaries
Quick Reference
Error Boundary Overview
| Aspect | Detail |
|---|---|
| Component type | Class component ONLY (no hook equivalent exists) |
| Catches | Errors during rendering, lifecycle methods, constructors of child tree |
| Does NOT catch | Event handlers, async code, SSR errors, errors in the boundary itself |
| React 18 | getDerivedStateFromError + componentDidCatch |
| React 19 | Same API + onCaughtError/onUncaughtError callbacks on createRoot |
| Recommended library | react-error-boundary (function component wrapper with hooks) |
Lifecycle Methods
| Method | Phase | Purpose | Side Effects? |
|---|
Related skills