React·100 questions

What is Error Boundary and why is it needed?

Answer
Catches errors during rendering/lifecycle.
Doesn't catch errors in async/handlers.
Shows fallback UI.
Implemented via class component or library.
Add logging (Sentry) in componentDidCatch.
Was this answer helpful?

More questions in this topic

Related questions from other topics