Error Boundary Limitation
Multiple Choice Medium
Question
Which type of error can an error boundary NOT catch?
Hint
Error boundaries catch only rendering-phase errors.
Explanation
Error boundaries do NOT catch errors in event handlers, async code (setTimeout, requestAnimationFrame), or promises. They catch only errors during rendering, in lifecycle methods, and in constructors. For event handler errors, use try/catch.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.